aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/c99.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/c99.cpp')
-rw-r--r--test/SemaCXX/c99.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/c99.cpp b/test/SemaCXX/c99.cpp
new file mode 100644
index 000000000000..b0ee056ef379
--- /dev/null
+++ b/test/SemaCXX/c99.cpp
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+void f0(int i) {
+ char array[i]; // expected-error{{variable length arrays}}
+}
+
+void f1(int i[static 5]) { // expected-error{{C99}}
+}