aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Parser/cxx-in-c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Parser/cxx-in-c.c b/test/Parser/cxx-in-c.c
index 50212ad0b3..f5fa39bd0c 100644
--- a/test/Parser/cxx-in-c.c
+++ b/test/Parser/cxx-in-c.c
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fsyntax-only -verify
+// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR9137
-void f0(int x) : {};
-void f1(int x) try {};
+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}}