File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments