brintos

brintos / llvm-project-archived public Read only

0
0
Text · 427 B · b06cc12 Raw
11 lines · plain
1// RUN: %clang_cc1 -x cl %s -verify -pedantic -fsyntax-only2 3typedef float float8 __attribute__((ext_vector_type(8)));4 5void foo(void) {6    float8 f2 = (float8)(0, 0, 0, 0, 0, 0, 0, 0);7 8    f2.s01234; // expected-error {{vector component access has invalid length 5; supported lengths are: 1,2,3,4,8,16}}9    f2.xyzxy; // expected-error {{vector component access has invalid length 5; supported lengths are: 1,2,3,4,8,16}}10}11