Skip to content

Commit 0142994

Browse files
Update testvarid.cpp
1 parent caacea2 commit 0142994

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testvarid.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,6 +3066,11 @@ class TestVarID : public TestFixture {
30663066
" int j{i};\n"
30673067
" }\n"
30683068
"};"));
3069+
3070+
ASSERT_EQUALS("1: struct Sx { int i@1 ; } ;\n" // #14733
3071+
"2: struct Sx sx@2 { 0 } ;\n",
3072+
tokenize("struct Sx { int i; };\n"
3073+
"struct Sx sx{ 0 }; \n"));
30693074
}
30703075

30713076
void varid_inheritedMembers() {

0 commit comments

Comments
 (0)