11 lines · plain
1// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only2// expected-no-diagnostics3 4typedef int int3 __attribute__((ext_vector_type(3)));5 6void test(void)7{8 int index = (int3)(1, 2, 3).x * (int3)(3, 2, 1).y;9}10 11 1// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only2// expected-no-diagnostics3 4typedef int int3 __attribute__((ext_vector_type(3)));5 6void test(void)7{8 int index = (int3)(1, 2, 3).x * (int3)(3, 2, 1).y;9}10 11