#6135: Added test case to testgarbage in order to ensure that this issue does not appear again.
This commit is contained in:
parent
e3bff8ff07
commit
dde34bb88c
|
@ -70,6 +70,7 @@ private:
|
|||
TEST_CASE(garbageCode29);
|
||||
TEST_CASE(garbageCode30); // #5867
|
||||
TEST_CASE(garbageCode31); // #6539
|
||||
TEST_CASE(garbageCode32); // #6135
|
||||
|
||||
TEST_CASE(garbageValueFlow);
|
||||
TEST_CASE(garbageSymbolDatabase);
|
||||
|
@ -396,6 +397,10 @@ private:
|
|||
ASSERT_THROW(checkCode("typedef struct{}x[([],)]typedef e y;(y,x 0){}"), InternalError);
|
||||
}
|
||||
|
||||
void garbageCode32() { // #6135
|
||||
checkCode(" ( * const ( size_t ) ; foo )");
|
||||
}
|
||||
|
||||
void garbageValueFlow() {
|
||||
// #6089
|
||||
const char* code = "{} int foo(struct, x1, struct x2, x3, int, x5, x6, x7)\n"
|
||||
|
|
Loading…
Reference in New Issue