Skip to content

Commit f0dfef6

Browse files
Update testclass.cpp
1 parent 140480f commit f0dfef6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testclass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6863,6 +6863,12 @@ class TestClass : public TestFixture {
68636863
" int i;\n"
68646864
"};\n");
68656865
ASSERT_EQUALS("", errout_str());
6866+
6867+
checkConst("struct S {\n" // #14033
6868+
" void f();\n"
6869+
" void f() const {}\n"
6870+
"};\n");
6871+
ASSERT_EQUALS("", errout_str()); // don't crash
68666872
}
68676873

68686874
void const_handleDefaultParameters() {

0 commit comments

Comments
 (0)