Skip to content

Commit 4524088

Browse files
Update testother.cpp
1 parent c30219e commit 4524088

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7756,6 +7756,12 @@ class TestOther : public TestFixture {
77567756
"}\n", dinit(CheckOptions, $.cpp = false));
77577757
ASSERT_EQUALS("", errout_str());
77587758

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+
77597765
check("void f() {\n"
77607766
" enum { Four = 4 };\n"
77617767
" static_assert(4 == Four, \"\");\n"

0 commit comments

Comments
 (0)