Ticket #7884: added regression test
This commit is contained in:
parent
d62242da27
commit
098c0c44fd
|
@ -241,6 +241,7 @@ private:
|
||||||
TEST_CASE(garbageCode213); // #8758
|
TEST_CASE(garbageCode213); // #8758
|
||||||
TEST_CASE(garbageCode214);
|
TEST_CASE(garbageCode214);
|
||||||
TEST_CASE(garbageCode215); // daca@home script with extension .c
|
TEST_CASE(garbageCode215); // daca@home script with extension .c
|
||||||
|
TEST_CASE(garbageCode216); // #7884
|
||||||
|
|
||||||
TEST_CASE(garbageCodeFuzzerClientMode1); // test cases created with the fuzzer client, mode 1
|
TEST_CASE(garbageCodeFuzzerClientMode1); // test cases created with the fuzzer client, mode 1
|
||||||
|
|
||||||
|
@ -1666,6 +1667,12 @@ private:
|
||||||
ASSERT_THROW(checkCode("a = [1,2,3];"), InternalError);
|
ASSERT_THROW(checkCode("a = [1,2,3];"), InternalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void garbageCode216() { // #7884
|
||||||
|
checkCode("template<typename> struct A {};\n"
|
||||||
|
"template<typename...T> struct A<T::T...> {}; \n"
|
||||||
|
"A<int> a;");
|
||||||
|
}
|
||||||
|
|
||||||
void syntaxErrorFirstToken() {
|
void syntaxErrorFirstToken() {
|
||||||
ASSERT_THROW(checkCode("&operator(){[]};"), InternalError); // #7818
|
ASSERT_THROW(checkCode("&operator(){[]};"), InternalError); // #7818
|
||||||
ASSERT_THROW(checkCode("*(*const<> (size_t); foo) { } *(*const (size_t)() ; foo) { }"), InternalError); // #6858
|
ASSERT_THROW(checkCode("*(*const<> (size_t); foo) { } *(*const (size_t)() ; foo) { }"), InternalError); // #6858
|
||||||
|
|
Loading…
Reference in New Issue