diff options
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r-- | test/FixIt/fixit.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp index 86b397777c..7c8ba9ac6f 100644 --- a/test/FixIt/fixit.cpp +++ b/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 (...) { +} |