xref: /llvm-project/clang/test/SemaOpenCL/vec_compare.cl (revision 0e890904ea342aba088ed2a55b537ffdb0562234)
1// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
2// expected-no-diagnostics
3
4typedef __attribute__((ext_vector_type(2)))  unsigned int uint2;
5typedef __attribute__((ext_vector_type(2)))  int int2;
6
7void unsignedCompareOps(void)
8{
9  uint2 A, B;
10  int2 result = A != B;
11}
12
13