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