Skip to content

Commit aa91b3a

Browse files
Update testtokenize.cpp
1 parent 9b9dd99 commit aa91b3a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎test/testtokenize.cpp‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,15 @@ class TestTokenizer : public TestFixture {
20282028
"void S::func() const\n"
20292029
"try { f(); }\n"
20302030
"catch (...) { g(); }\n"));
2031+
2032+
ASSERT_EQUALS("struct D : B {\n" // #15126
2033+
"void f ( ) override { try { } catch ( ... ) { } }\n"
2034+
"void g ( ) final { try { } catch ( ... ) { } }\n"
2035+
"} ;",
2036+
tokenizeAndStringify("struct D : B {\n"
2037+
" void f() override try {} catch (...) {}\n"
2038+
" void g() final try {} catch (...) {}\n"
2039+
"};\n"));
20312040
}
20322041

20332042
// Simplify "((..))" into "(..)"

0 commit comments

Comments
 (0)