Skip to content

Commit b7dcb16

Browse files
Update testvarid.cpp
1 parent 2300a76 commit b7dcb16

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/testvarid.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class TestVarID : public TestFixture {
101101
TEST_CASE(varid69);
102102
TEST_CASE(varid70); // #12660 - function
103103
TEST_CASE(varid71); // #12676 - wrong varid in uninstantiated templated constructor
104+
TEST_CASE(varid72);
104105
TEST_CASE(varid_for_1);
105106
TEST_CASE(varid_for_2);
106107
TEST_CASE(varid_for_3);
@@ -1399,6 +1400,12 @@ class TestVarID : public TestFixture {
13991400
ASSERT_EQUALS(expected, tokenize(code));
14001401
}
14011402

1403+
void varid72() {
1404+
const char code1[] = "static_assert(true && true);\n"; // #14386
1405+
const char expected1[] = "1: static_assert ( true && true ) ;\n";
1406+
ASSERT_EQUALS(expected1, tokenize(code1));
1407+
}
1408+
14021409
void varid_for_1() {
14031410
const char code[] = "void foo(int a, int b) {\n"
14041411
" for (int a=1,b=2;;) {}\n"

0 commit comments

Comments
 (0)