diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
commit | 01af97d3b23bded2b2b21af19bbc6e4cce49e5b3 (patch) | |
tree | 64a10f4c4154739d4a8191d7e1b52ce497f4ebd6 /test/Sema/vector-ops.c | |
parent | c3b054d250cdca485c71845089c316e10610ebad (diff) |
Diffstat (limited to 'test/Sema/vector-ops.c')
-rw-r--r-- | test/Sema/vector-ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/vector-ops.c b/test/Sema/vector-ops.c index 20575ec510c31..ca397375d7392 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]; |