Ticket #5050: Added test case since it works now.

This commit is contained in:
Simon Martin 2014-03-01 10:37:55 +01:00
parent a41a32ba8a
commit ef3f135af2
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() {