aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/ext_vector_casts.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-22 23:07:26 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-22 23:07:26 +0000
commit0c293ea13d452c1a47a05ada5a5ee9acc69c66cc (patch)
tree05c555c43dc7bcba4c719c88c049d9bcf5d80d29 /test/Sema/ext_vector_casts.c
parente4eae6a5768357edbed80034cbc4670dde313b4d (diff)
Type Type::isRealFloatingType() that vectors are not floating-point
types, updating callers of both isFloatingType() and isRealFloatingType() accordingly. Caught at least one issue where we allowed one to declare a vector of vectors (!), along with cleaning up the standard-conversion logic for C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/ext_vector_casts.c')
-rw-r--r--test/Sema/ext_vector_casts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/ext_vector_casts.c b/test/Sema/ext_vector_casts.c
index d2976238c0..be09903e00 100644
--- a/test/Sema/ext_vector_casts.c
+++ b/test/Sema/ext_vector_casts.c
@@ -43,3 +43,5 @@ static void test() {
ivec4 |= ivec4;
ivec4 += ptr; // expected-error {{can't convert between vector values of different size ('int4' and 'int *')}}
}
+
+typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector type 'float2'}}