We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6b31b7 commit c53c87eCopy full SHA for c53c87e
1 file changed
test/testclass.cpp
@@ -195,6 +195,7 @@ class TestClass : public TestFixture {
195
TEST_CASE(const98);
196
TEST_CASE(const99);
197
TEST_CASE(const100);
198
+ TEST_CASE(const101);
199
200
TEST_CASE(const_handleDefaultParameters);
201
TEST_CASE(const_passThisToMemberOfOtherClass);
@@ -6972,6 +6973,16 @@ class TestClass : public TestFixture {
6972
6973
ASSERT_EQUALS("", errout_str()); // don't crash
6974
}
6975
6976
+ void const101() {
6977
+ checkConst("struct error {\n"
6978
+ " error() = default;\n"
6979
+ "};\n"
6980
+ "struct S : U {\n"
6981
+ " int f() { return this->error(); }\n"
6982
+ "};\n");
6983
+ ASSERT_EQUALS("", errout_str());
6984
+ }
6985
+
6986
void const_handleDefaultParameters() {
6987
checkConst("struct Foo {\n"
6988
" void foo1(int i, int j = 0) {\n"
0 commit comments