Ticket #5050: Added test case since it works now.
This commit is contained in:
parent
a41a32ba8a
commit
ef3f135af2
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue