Skip to content

Commit 882a794

Browse files
committed
add test
1 parent e3c0981 commit 882a794

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
@@ -3548,6 +3548,12 @@ class TestVarID : public TestFixture {
35483548
"3: void ( * a@2 [ 1 ] ) ( int * ) = { 0 } ;\n"
35493549
"4: }\n",
35503550
tokenize(code4));
3551+
3552+
const char code5[] = "int *p;\n"
3553+
"void (*a[1])(int* p) = { 0 } ;\n";
3554+
ASSERT_EQUALS("1: int * p@1 ;\n"
3555+
"2: void ( * a@2 [ 1 ] ) ( int * ) = { 0 } ;\n"
3556+
, tokenize(code5));
35513557
}
35523558

35533559
void varid_alignas() {

0 commit comments

Comments
 (0)