summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/ext_vector_casts.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-22 23:41:02 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-22 23:41:02 +0000
commita3208f9e7c5d94764599d4873622a4470af35864 (patch)
treedb6befc782ed7607c577579a2f5e69c90e0f44fa /clang/test/Sema/ext_vector_casts.c
parent1e13c17a55d5db7d4fd96f281940880ead12fc8c (diff)
downloadbcm5719-llvm-a3208f9e7c5d94764599d4873622a4470af35864.tar.gz
bcm5719-llvm-a3208f9e7c5d94764599d4873622a4470af35864.zip
Vector types are not arithmetic types, either. Note that we now ban
__real myvec and __imag myvec, since they aren't all that useful (it's just an identity function) but we might want to use them in more restricted cases in the future (e.g., "__real mycomplexvec" could extract the real parts of a vector of complex numbers). llvm-svn: 106601
Diffstat (limited to 'clang/test/Sema/ext_vector_casts.c')
-rw-r--r--clang/test/Sema/ext_vector_casts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/ext_vector_casts.c b/clang/test/Sema/ext_vector_casts.c
index 7b7b0caf0aa..143ce04e216 100644
--- a/clang/test/Sema/ext_vector_casts.c
+++ b/clang/test/Sema/ext_vector_casts.c
@@ -48,4 +48,5 @@ typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-erro
void inc(float2 f2) {
f2++; // expected-error{{cannot increment value of type 'float2'}}
+ __real f2; // expected-error{{invalid type 'float2' to __real operator}}
}
OpenPOWER on IntegriCloud