Skip to content

Commit

Permalink
Update testgarbage.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Apr 15, 2024
1 parent 3f7dd16 commit 4cc1cec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/testgarbage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ class TestGarbage : public TestFixture {
TEST_CASE(garbageCode224);
TEST_CASE(garbageCode225);
TEST_CASE(garbageCode226);
TEST_CASE(garbageCode227);

TEST_CASE(garbageCodeFuzzerClientMode1); // test cases created with the fuzzer client, mode 1

Expand Down Expand Up @@ -1753,6 +1754,10 @@ class TestGarbage : public TestFixture {
ASSERT_THROW_INTERNAL(checkCode("int a() { (b((c)\\)) } {}"), SYNTAX);
ASSERT_THROW_INTERNAL(checkCode("int a() { (b((c)@)) } {}"), SYNTAX);
}
void garbageCode227() { // #12615
checkCode("f(&S::operator=);");
ignore_errout(); // we do not care about the output
}

void syntaxErrorFirstToken() {
ASSERT_THROW_INTERNAL(checkCode("&operator(){[]};"), SYNTAX); // #7818
Expand Down

0 comments on commit 4cc1cec

Please sign in to comment.