diff --git a/cfg/googletest.cfg b/cfg/googletest.cfg index c93862d64f6..36dd8a40669 100644 --- a/cfg/googletest.cfg +++ b/cfg/googletest.cfg @@ -32,6 +32,8 @@ + + diff --git a/test/cfg/googletest.cpp b/test/cfg/googletest.cpp index 44825425e12..eaec730136d 100644 --- a/test/cfg/googletest.cpp +++ b/test/cfg/googletest.cpp @@ -30,6 +30,16 @@ namespace ExampleNamespace { { return (arg == TOLERANCE); } + + // syntaxError when TYPED_TEST is not known + TYPED_TEST (ExampleTypedTest, cppcheck_test) + { + } + + // syntaxError when TYPED_TEST_P is not known + TYPED_TEST_P (ExampleTypedTestP, cppcheck) + { + } } TEST(ASSERT, ASSERT)