summaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-in-c.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-in-c.c')
-rw-r--r--clang/test/Parser/cxx-in-c.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-in-c.c b/clang/test/Parser/cxx-in-c.c
new file mode 100644
index 0000000..f5fa39b
--- /dev/null
+++ b/clang/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}}