Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / vector_swizzle_length.cl
blobf36ae201205e0957534056ed30ea8e62df05dd3b
1 // RUN: %clang_cc1 -x cl %s -verify -pedantic -fsyntax-only
3 typedef float float8 __attribute__((ext_vector_type(8)));
5 void foo(void) {
6 float8 f2 = (float8)(0, 0, 0, 0, 0, 0, 0, 0);
8 f2.s01234; // expected-error {{vector component access has invalid length 5. Supported: 1,2,3,4,8,16}}
9 f2.xyzxy; // expected-error {{vector component access has invalid length 5. Supported: 1,2,3,4,8,16}}