summaryrefslogtreecommitdiff
path: root/test/SemaOpenCL/vector_literals_invalid.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaOpenCL/vector_literals_invalid.cl')
-rw-r--r--test/SemaOpenCL/vector_literals_invalid.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaOpenCL/vector_literals_invalid.cl b/test/SemaOpenCL/vector_literals_invalid.cl
index 957680f44ffec..e4e23cd85f009 100644
--- a/test/SemaOpenCL/vector_literals_invalid.cl
+++ b/test/SemaOpenCL/vector_literals_invalid.cl
@@ -8,6 +8,6 @@ void vector_literals_invalid()
{
int4 a = (int4)(1,2,3); // expected-error{{too few elements}}
int4 b = (int4)(1,2,3,4,5); // expected-error{{excess elements in vector}}
- ((float4)(1.0f))++; // expected-error{{expression is not assignable}}
+ ((float4)(1.0f))++; // expected-error{{cannot increment value of type 'float4'}}
int8 d = (int8)(a,(float4)(1)); // expected-error{{initializing 'int' with an expression of incompatible type 'float4'}}
}