diff --git a/test/testincompletestatement.cpp b/test/testincompletestatement.cpp index 850cb41ee..cc098d962 100644 --- a/test/testincompletestatement.cpp +++ b/test/testincompletestatement.cpp @@ -182,10 +182,15 @@ private: void structinit() { + // #2462 - C++0x struct initialization check("void f() {\n" " ABC abc{1,2,3};\n" "}\n"); ASSERT_EQUALS("", errout.str()); + + // #2482 - false positive for empty struct + check("struct A {};"); + ASSERT_EQUALS("", errout.str()); } };