Skip to content

Commit 44c2740

Browse files
committed
add test
1 parent 2e6df2f commit 44c2740

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testvarid.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3543,6 +3543,12 @@ class TestVarID : public TestFixture {
35433543
"3: void ( * a@2 [ 1 ] ) ( int * p@3 ) = { 0 } ;\n"
35443544
"4: }\n",
35453545
tokenize(code4));
3546+
3547+
const char code5[] = "int *p;\n"
3548+
"void (*a[1])(int* p) = { 0 } ;\n";
3549+
ASSERT_EQUALS("1: int * p@1 ;\n"
3550+
"2: void ( * a@2 [ 1 ] ) ( int * p@3 ) = { 0 } ;\n"
3551+
, tokenize(code5));
35463552
}
35473553

35483554
void varid_alignas() {

0 commit comments

Comments
 (0)