incomplete statement: added a testcase for a false positive

This commit is contained in:
Daniel Marjamäki 2009-02-09 20:15:14 +00:00
parent 927e533b4c
commit 0cdb537a6a
1 changed files with 7 additions and 0 deletions

View File

@ -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)