testrunner: add testcase for crash which was fixed in previous 2 commits.

This commit is contained in:
Matthias Krüger 2015-11-07 20:43:58 +01:00
parent 35ed902e3f
commit dc823c65fa
1 changed files with 9 additions and 0 deletions

View File

@ -200,6 +200,8 @@ private:
TEST_CASE(garbageCode149); // #7085 TEST_CASE(garbageCode149); // #7085
TEST_CASE(garbageCode150); // #7089 TEST_CASE(garbageCode150); // #7089
TEST_CASE(garbageCode151); // #4175 TEST_CASE(garbageCode151); // #4175
TEST_CASE(garbageCode152); // travis after 9c7271a5
TEST_CASE(garbageValueFlow); TEST_CASE(garbageValueFlow);
TEST_CASE(garbageSymbolDatabase); TEST_CASE(garbageSymbolDatabase);
@ -1204,6 +1206,13 @@ private:
"}"); "}");
} }
void garbageCode152() { // happened in travis, originaly from llvm clang code
const char* code = "template <bool foo = std::value &&>\n"
"static std::string foo(char *Bla) {\n"
" while (Bla[1] && Bla[1] != ',') }\n";
checkCode(code);
}
void garbageValueFlow() { void garbageValueFlow() {
// #6089 // #6089
const char* code = "{} int foo(struct, x1, struct x2, x3, int, x5, x6, x7)\n" const char* code = "{} int foo(struct, x1, struct x2, x3, int, x5, x6, x7)\n"