summaryrefslogtreecommitdiffstats
path: root/test/Sema/vector-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/vector-ops.c')
-rw-r--r--test/Sema/vector-ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/vector-ops.c b/test/Sema/vector-ops.c
index 20575ec..ca39737 100644
--- a/test/Sema/vector-ops.c
+++ b/test/Sema/vector-ops.c
@@ -12,6 +12,9 @@ void test1(v2u v2ua, v2s v2sa, v2f v2fa) {
(void)(~v2ua);
(void)(~v2fa); // expected-error{{invalid argument type 'v2f' to unary}}
+ // Comparison operators
+ v2ua = (v2ua==v2sa);
+
// Arrays
int array1[v2ua]; // expected-error{{size of array has non-integer type 'v2u'}}
int array2[17];
OpenPOWER on IntegriCloud