summaryrefslogtreecommitdiffstats
path: root/test/Sema/illegal-types.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/illegal-types.c')
-rw-r--r--test/Sema/illegal-types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/illegal-types.c b/test/Sema/illegal-types.c
index 3c59df8..819b38a 100644
--- a/test/Sema/illegal-types.c
+++ b/test/Sema/illegal-types.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
+// RUN: %clang_cc1 -fsyntax-only -verify -x c++ -std=c++98 %s
void a (void []()); // expected-error{{'type name' declared as array of functions}}
void b (void p[]()); // expected-error{{'p' declared as array of functions}}
OpenPOWER on IntegriCloud