I forgot to check this in earlier

llvm-svn: 39958
This commit is contained in:
Chris Lattner 2007-07-17 04:58:06 +00:00
parent ee673372ef
commit 5b2f6970c1
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// RUN: clang -parse-ast-check %s
typedef float float4 __attribute__((vector_size(16)));
typedef int int4 __attribute__((vector_size(16)));
typedef int4* int4p;
void test1(float4 a, int4 *result, int i) {
result[i] = a; // expected-error {{assigning 'float4' to 'int4'}}
}
void test2(float4 a, int4p result, int i) {
result[i] = a; // expected-error {{assigning 'float4' to 'int4'}}
}