From 0cdb537a6a2fccc9d87ad736e4d7bed51f494d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 9 Feb 2009 20:15:14 +0000 Subject: [PATCH] incomplete statement: added a testcase for a false positive --- test/testincompletestatement.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/testincompletestatement.cpp b/test/testincompletestatement.cpp index bea823a53..31644f3c3 100644 --- a/test/testincompletestatement.cpp +++ b/test/testincompletestatement.cpp @@ -63,6 +63,7 @@ private: TEST_CASE(test3); TEST_CASE(test4); TEST_CASE(test_numeric); + // TODO TEST_CASE(intarray); } void test1() @@ -133,6 +134,12 @@ private: ASSERT_EQUALS(std::string(""), errout.str()); } + + void intarray() + { + check("int arr[] = { 100/2, 1*100 };\n"); + ASSERT_EQUALS(std::string(""), errout.str()); + } }; REGISTER_TEST(TestIncompleteStatement)