Skip to content

Commit 0c49194

Browse files
Update testclass.cpp
1 parent fa70f8b commit 0c49194

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/testclass.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8835,6 +8835,16 @@ class TestClass : public TestFixture {
88358835
"};\n");
88368836
ASSERT_EQUALS("[test.cpp:2:14] -> [test.cpp:5:6]: (style) The destructor '~D' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]\n",
88378837
errout_str());
8838+
8839+
checkOverride("struct B {\n" // #14581
8840+
" virtual void f();\n"
8841+
"};\n"
8842+
"struct D : B {\n"
8843+
" void f() override;\n"
8844+
" template <typename T>\n"
8845+
" void f();\n"
8846+
"};\n");
8847+
ASSERT_EQUALS("", errout_str());
88388848
}
88398849

88408850
void overrideCVRefQualifiers() {

0 commit comments

Comments
 (0)