We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e045f commit 7da9ff7Copy full SHA for 7da9ff7
1 file changed
test/testtokenize.cpp
@@ -218,6 +218,7 @@ class TestTokenizer : public TestFixture {
218
TEST_CASE(vardecl29); // #9282
219
TEST_CASE(vardecl30);
220
TEST_CASE(vardecl31); // function pointer init
221
+ TEST_CASE(vardecl32);
222
TEST_CASE(vardecl_stl_1);
223
TEST_CASE(vardecl_stl_2);
224
TEST_CASE(vardecl_stl_3);
@@ -2766,6 +2767,13 @@ class TestTokenizer : public TestFixture {
2766
2767
}
2768
2769
2770
+ void vardecl32() {
2771
+ {
2772
+ const char code[] = "static enum { E } f() { return E; }";
2773
+ ASSERT_EQUALS("enum Anonymous0 { E } ; static enum Anonymous0 f ( ) { return E ; }", tokenizeAndStringify(code));
2774
+ }
2775
2776
+
2777
void volatile_variables() {
2778
{
2779
const char code[] = "volatile int a=0;\n"
0 commit comments