Bruno Cardoso Lopes | 9e57518 | 2017-10-17 17:54:57 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x cl %s -verify -pedantic -fsyntax-only |
Egor Churaev | 392a507 | 2017-03-21 13:20:57 +0000 | [diff] [blame] | 2 | |
| 3 | typedef float float8 __attribute__((ext_vector_type(8))); |
| 4 | |
| 5 | void foo() { |
| 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: 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}} |
| 10 | } |