Egor Churaev | 92d7fce | 2017-03-29 12:09:39 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only |
2 | // expected-no-diagnostics | ||||
3 | |||||
4 | typedef int int3 __attribute__((ext_vector_type(3))); | ||||
5 | |||||
6 | void test() | ||||
7 | { | ||||
8 | int index = (int3)(1, 2, 3).x * (int3)(3, 2, 1).y; | ||||
9 | } | ||||
10 |