typedef-retain.c revision 5cf216b7fa64b933b60743b0b26053e8e7aa87be
1// RUN: clang -fsyntax-only -verify %s 2 3typedef float float4 __attribute__((vector_size(16))); 4typedef int int4 __attribute__((vector_size(16))); 5typedef int4* int4p; 6 7void test1(float4 a, int4 *result, int i) { 8 result[i] = a; // expected-error {{assigning 'float4', expected 'int4'}} 9} 10 11void test2(float4 a, int4p result, int i) { 12 result[i] = a; // expected-error {{assigning 'float4', expected 'int4'}} 13} 14 15