File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ class TestGarbage : public TestFixture {
242242 TEST_CASE (garbageCode214);
243243 TEST_CASE (garbageCode215); // daca@home script with extension .c
244244 TEST_CASE (garbageCode216); // #7884
245+ TEST_CASE (garbageCode217); // #10011
245246
246247 TEST_CASE (garbageCodeFuzzerClientMode1); // test cases created with the fuzzer client, mode 1
247248
@@ -1673,6 +1674,14 @@ class TestGarbage : public TestFixture {
16731674 " A<int> a;" );
16741675 }
16751676
1677+ void garbageCode217 () { // #10011
1678+ ASSERT_THROW (checkCode (" void f() {\n "
1679+ " auto p;\n "
1680+ " if (g(p)) {}\n "
1681+ " assert();\n "
1682+ " }" ), InternalError);
1683+ }
1684+
16761685 void syntaxErrorFirstToken () {
16771686 ASSERT_THROW (checkCode (" &operator(){[]};" ), InternalError); // #7818
16781687 ASSERT_THROW (checkCode (" *(*const<> (size_t); foo) { } *(*const (size_t)() ; foo) { }" ), InternalError); // #6858
You can’t perform that action at this time.
0 commit comments