1 parent c30219e commit 4524088Copy full SHA for 4524088
1 file changed
test/testother.cpp
@@ -7756,6 +7756,12 @@ class TestOther : public TestFixture {
7756
"}\n", dinit(CheckOptions, $.cpp = false));
7757
ASSERT_EQUALS("", errout_str());
7758
7759
+ check("void f() {\n" // #15020
7760
+ " enum { Four = 4 };\n"
7761
+ " static_assert(Four == 4, \"\");\n"
7762
+ "}\n", dinit(CheckOptions, $.cpp = false));
7763
+ ASSERT_EQUALS("", errout_str());
7764
+
7765
check("void f() {\n"
7766
" enum { Four = 4 };\n"
7767
" static_assert(4 == Four, \"\");\n"
0 commit comments