We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0af202f commit 0af3135Copy full SHA for 0af3135
1 file changed
test/testvarid.cpp
@@ -3497,6 +3497,16 @@ class TestVarID : public TestFixture {
3497
3498
const char code3[] = "void f (void (*g) (int i, IN int n)) {}\n";
3499
ASSERT_EQUALS("1: void f ( void ( * g@1 ) ( int , IN int ) ) { }\n", tokenize(code3));
3500
+
3501
+ const char code4[] = "void f() {\n" // #14439
3502
+ " int* p;\n"
3503
+ " void (*a[1])(int* p) = { 0 };\n"
3504
+ "}\n";
3505
+ ASSERT_EQUALS("1: void f ( ) {\n"
3506
+ "2: int * p@1 ;\n"
3507
+ "3: void ( * a@2 [ 1 ] ) ( int * p ) = { 0 } ;\n"
3508
+ "4: }\n",
3509
+ tokenize(code4));
3510
}
3511
3512
void varid_alignas() {
0 commit comments