xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/std.cl (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL
2// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL1.1
3// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL1.2
4// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL2.0
5// RUN: not %clang_cc1 %s -fsyntax-only -cl-std=invalid -DINVALID 2>&1 | FileCheck %s
6
7#ifdef INVALID
8// CHECK: invalid value 'invalid' in '-cl-std=invalid'
9#endif
10