Added test case for #3619

This commit is contained in:
PKEuS 2012-03-25 10:33:18 +02:00
parent fe9d491aae
commit 0338153de9
1 changed files with 7 additions and 0 deletions

View File

@ -282,6 +282,7 @@ private:
TEST_CASE(simplifyTypedef103); // ticket #3007
TEST_CASE(simplifyTypedef104); // ticket #3070
TEST_CASE(simplifyTypedef105); // ticket #3616
TEST_CASE(simplifyTypedef106); // ticket #3619
TEST_CASE(simplifyTypedefFunction1);
TEST_CASE(simplifyTypedefFunction2); // ticket #1685
@ -5740,6 +5741,12 @@ private:
ASSERT_EQUALS("", errout.str());
}
void simplifyTypedef106() { // ticket #3619 (segmentation fault)
const char code[] = "typedef void f ();\ntypedef { f }";
sizeof_(code);
ASSERT_EQUALS("", errout.str());
}
void simplifyTypedefFunction1() {
{
const char code[] = "typedef void (*my_func)();\n"