Anastasia Stulova 561e0aa180 Extended list of valid frontend options with '-cl-std=CL2.0'.
This option sets language mode for the compilation of a source file to be OpenCL v2.0.

Example: clang -cc1 -cl-std=CL2.0 myfile.cl
llvm-svn: 222444
2014-11-20 19:25:00 +00:00

10 lines
362 B
Common Lisp

// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL
// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL1.1
// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL1.2
// RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL2.0
// RUN: not %clang_cc1 %s -fsyntax-only -cl-std=invalid -DINVALID 2>&1 | FileCheck %s
#ifdef INVALID
// CHECK: invalid value 'invalid' in '-cl-std=invalid'
#endif