Skip to content

Commit 5ea92e6

Browse files
Update testother.cpp
1 parent 7562504 commit 5ea92e6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎test/testother.cpp‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13684,10 +13684,14 @@ class TestOther : public TestFixture {
1368413684
ASSERT_EQUALS("", errout_str());
1368513685

1368613686
check("struct S {\n" // #15063
13687-
" int (*f)(int a, int n);\n"
13687+
" int (*f)(int, int);\n"
13688+
" int (*a[2])(int, int);\n"
1368813689
"};\n"
13689-
"int g(struct S* p, int x) {\n"
13690+
"int g1(struct S* p, int x) {\n"
1369013691
" return (p->f)(x, 10);\n"
13692+
"}\n"
13693+
"int g2(struct S s, int x) {\n"
13694+
" return s.a[0](x, 10);\n"
1369113695
"}\n");
1369213696
ASSERT_EQUALS("", errout_str());
1369313697
}

0 commit comments

Comments
 (0)