Merge pull request #243 from simartin/ticket_5050_testcase

Ticket #5050: Added test case since it works now.
This commit is contained in:
Daniel Marjamäki 2014-03-02 08:54:53 +01:00
commit 16e06b3f2a
1 changed files with 6 additions and 1 deletions

View File

@ -348,8 +348,13 @@ private:
ASSERT_EQUALS("[test.cpp:3]: (error) Address of local auto-variable assigned to a function parameter.\n", errout.str());
}
void testautovar12() { // Ticket #5024 - Crash on invalid input
void testautovar12() { // Ticket #5024, #5050 - Crash on invalid input
check("void f(int* a) { a = }");
check("struct custom_type { custom_type(int) {} };\n"
"void func(int) {}\n"
"int var;\n"
"void init() { func(var); }\n"
"UNKNOWN_MACRO_EXPANDING_TO_SIGNATURE { custom_type a(var); }");
}
void testautovar_array1() {