diff options
Diffstat (limited to 'test/Frontend/std.cl')
-rw-r--r-- | test/Frontend/std.cl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Frontend/std.cl b/test/Frontend/std.cl new file mode 100644 index 000000000000..b811b64dabcb --- /dev/null +++ b/test/Frontend/std.cl @@ -0,0 +1,9 @@ +// 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 |