diff --git a/test/testunusedfunctions.cpp b/test/testunusedfunctions.cpp index 396243dde72..2b1773f2f66 100644 --- a/test/testunusedfunctions.cpp +++ b/test/testunusedfunctions.cpp @@ -323,7 +323,7 @@ class TestUnusedFunctions : public TestFixture { "};\n"); ASSERT_EQUALS("[test.cpp:3]: (style) The function 'tf' is never used.\n", errout_str()); - check("struct S {\n" + check("struct C {\n" " template\n" " void tf(const T&) { }\n" "};\n" @@ -333,7 +333,7 @@ class TestUnusedFunctions : public TestFixture { "}\n"); ASSERT_EQUALS("", errout_str()); - check("struct S {\n" + check("struct C {\n" " template\n" " void tf(const T&) { }\n" "};\n" @@ -586,7 +586,7 @@ class TestUnusedFunctions : public TestFixture { ASSERT_EQUALS("[test.cpp:2]: (style) The function 'f' is never used.\n", errout_str()); check("void f(void) {}\n" - "void (*list[])(void) = {f}"); + "void (*list[])(void) = {f};"); ASSERT_EQUALS("", errout_str()); }