#6135: Added test case to testgarbage in order to ensure that this issue does not appear again.

This commit is contained in:
orbitcowboy 2015-03-30 15:33:24 +02:00
parent e3bff8ff07
commit dde34bb88c
1 changed files with 5 additions and 0 deletions

View File

@ -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"