From: Chris Lattner Date: Tue, 17 Jul 2007 04:58:06 +0000 (+0000) Subject: I forgot to check this in earlier X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9697a5c457daefcf2bcc6c66f305852768e36041;p=clang I forgot to check this in earlier git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39958 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/typedef-retain.c b/test/Sema/typedef-retain.c new file mode 100644 index 0000000000..341252ff65 --- /dev/null +++ b/test/Sema/typedef-retain.c @@ -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'}} +} +