summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/c99.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/c99.cpp')
-rw-r--r--test/SemaCXX/c99.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/c99.cpp b/test/SemaCXX/c99.cpp
index 13918dc..7afcdd5 100644
--- a/test/SemaCXX/c99.cpp
+++ b/test/SemaCXX/c99.cpp
@@ -2,7 +2,7 @@
void f1(int i[static 5]) { // expected-error{{C99}}
}
-struct Point { int x; int y; };
+struct Point { int x; int y; int z[]; }; // expected-warning{{flexible array members are a C99 feature}}
Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}}
y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \
OpenPOWER on IntegriCloud