aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/ext_vector_casts.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-30 17:30:41 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-30 17:30:41 +0000
commit27cac990649d9c1217f018921749683464a28e6b (patch)
treeb7378ca3c4470df8dfb05bf8500fa2314a0a3384 /test/Sema/ext_vector_casts.c
parent90cd672ed107d5986936c577ce47ad7374096bd2 (diff)
Clean up the diagnostic complaining about the element type of a vector
type so that it actually complains about the element type itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107299 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, 1 insertions, 1 deletions
diff --git a/test/Sema/ext_vector_casts.c b/test/Sema/ext_vector_casts.c
index 143ce04e21..76819534db 100644
--- a/test/Sema/ext_vector_casts.c
+++ b/test/Sema/ext_vector_casts.c
@@ -44,7 +44,7 @@ static void test() {
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'}}
+typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector element type 'float2'}}
void inc(float2 f2) {
f2++; // expected-error{{cannot increment value of type 'float2'}}