diff --git a/test/testpostfixoperator.cpp b/test/testpostfixoperator.cpp index 15ae8b2e6..c605ab27d 100644 --- a/test/testpostfixoperator.cpp +++ b/test/testpostfixoperator.cpp @@ -326,7 +326,10 @@ private: void pointer() { check("static struct class * ab;\n" "int * p;\n" - "p++;\n"); + "\n" + "void f() {\n" + " p++;\n" + "}\n"); ASSERT_EQUALS("", errout.str()); }