summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-06-17 17:19:28 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-06-17 17:19:28 +0000
commitb5044fe4211877042384ef93d996c35622baf6ca (patch)
treeb3c969c229b5b58433d5e08f74427a54297e940a /clang/test/Frontend
parente021e85166bf0349d4b3f9334705f72a49285b3d (diff)
downloadbcm5719-llvm-b5044fe4211877042384ef93d996c35622baf6ca.tar.gz
bcm5719-llvm-b5044fe4211877042384ef93d996c35622baf6ca.zip
[OpenCL] Allow -std={cl|CL}{|1.1|1.2|2.0} in driver
Fix a regression which forbids using -std=cl|CL1.1|CL1.2|CL2.0 in driver. Allow -std and -cl-std={cl|CL}{|1.1|1.2|2.0}. Differential Revision: http://reviews.llvm.org/D20630 llvm-svn: 273015
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/stdlang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Frontend/stdlang.c b/clang/test/Frontend/stdlang.c
index 765d7272294..9c3c3078aaf 100644
--- a/clang/test/Frontend/stdlang.c
+++ b/clang/test/Frontend/stdlang.c
@@ -1,5 +1,9 @@
// RUN: %clang_cc1 -x cuda -std=c++11 -DCUDA %s
// RUN: %clang_cc1 -x cl -DOPENCL %s
+// RUN: %clang_cc1 -x cl -cl-std=cl -DOPENCL %s
+// RUN: %clang_cc1 -x cl -cl-std=cl1.1 -DOPENCL %s
+// RUN: %clang_cc1 -x cl -cl-std=cl1.2 -DOPENCL %s
+// RUN: %clang_cc1 -x cl -cl-std=cl2.0 -DOPENCL %s
// RUN: %clang_cc1 -x cl -cl-std=CL -DOPENCL %s
// RUN: %clang_cc1 -x cl -cl-std=CL1.1 -DOPENCL %s
// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -DOPENCL %s
OpenPOWER on IntegriCloud