diff options
Diffstat (limited to 'test/Parser/cxx-in-c.c')
-rw-r--r-- | test/Parser/cxx-in-c.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/cxx-in-c.c b/test/Parser/cxx-in-c.c new file mode 100644 index 0000000..f5fa39b --- /dev/null +++ b/test/Parser/cxx-in-c.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +// PR9137 +void f0(int x) : {}; // expected-error{{expected function body after function declarator}} +void f1(int x) try {}; // expected-error{{expected function body after function declarator}} |