summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/vector_swizzle_length.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/vector_swizzle_length.c')
-rw-r--r--clang/test/Sema/vector_swizzle_length.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/vector_swizzle_length.c b/clang/test/Sema/vector_swizzle_length.c
new file mode 100644
index 00000000000..5e6b1e7d67a
--- /dev/null
+++ b/clang/test/Sema/vector_swizzle_length.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -x c %s -verify -pedantic -fsyntax-only
+// expected-no-diagnostics
+
+typedef float float8 __attribute__((ext_vector_type(8)));
+
+void foo() {
+ float8 f2 = (float8){0, 0, 0, 0, 0, 0, 0, 0};
+ (void)f2.s01234;
+ (void)f2.xyzxy;
+}
OpenPOWER on IntegriCloud