diff options
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r-- | clang/test/FixIt/fixit.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp index 86b397777c2..7c8ba9ac6f1 100644 --- a/clang/test/FixIt/fixit.cpp +++ b/clang/test/FixIt/fixit.cpp @@ -125,3 +125,13 @@ AD oopsMoreCommas() { AD ad, // expected-error {{expected ';' at end of declaration}} return ad; } + +int extraSemi1(); // expected-error {{stray ';' in function definition}} +{ + return 0; +} + +int extraSemi2(); // expected-error {{stray ';' in function definition}} +try { +} catch (...) { +} |