xref: /llvm-project/clang/test/Sema/vector_swizzle_length.c (revision 22db4824b9e03fe8c2e9217d6832b71ac23c175f)
1 // RUN: %clang_cc1 -x c %s -verify -pedantic -fsyntax-only
2 // expected-no-diagnostics
3 
4 typedef float float8 __attribute__((ext_vector_type(8)));
5 
foo(void)6 void foo(void) {
7     float8 f2 = (float8){0, 0, 0, 0, 0, 0, 0, 0};
8     (void)f2.s01234;
9     (void)f2.xyzxy;
10 }
11