summaryrefslogtreecommitdiff
path: root/clang/test/Sema/warn-gnu-designators.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/warn-gnu-designators.c')
-rw-r--r--clang/test/Sema/warn-gnu-designators.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-gnu-designators.c b/clang/test/Sema/warn-gnu-designators.c
new file mode 100644
index 0000000..bdb3374
--- /dev/null
+++ b/clang/test/Sema/warn-gnu-designators.c
@@ -0,0 +1,2 @@
+// RUN: %clang_cc1 -Wno-gnu-designator -verify %s
+struct { int x, y, z[12]; } value = { x:17, .z [3 ... 5] = 7 };