diff options
Diffstat (limited to 'clang/test/SemaOpenCL/vec_compare.cl')
-rw-r--r-- | clang/test/SemaOpenCL/vec_compare.cl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaOpenCL/vec_compare.cl b/clang/test/SemaOpenCL/vec_compare.cl new file mode 100644 index 0000000..dd91aa5 --- /dev/null +++ b/clang/test/SemaOpenCL/vec_compare.cl @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only + +typedef __attribute__((ext_vector_type(2))) unsigned int uint2; +typedef __attribute__((ext_vector_type(2))) int int2; + +void unsignedCompareOps() +{ + uint2 A, B; + int2 result = A != B; +} + |