From b1b8ea645719d5a1ccb2c3ff15a65cf66aa12606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 19 Jan 2011 20:41:46 +0100 Subject: [PATCH] added unit test for #2482 --- test/testincompletestatement.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()); } };