]> granicus.if.org Git - clang/commitdiff
Add -fsyntax-only to Driver/opencl.cl test.
authorCong Liu <congliu@google.com>
Mon, 20 Jun 2016 11:25:26 +0000 (11:25 +0000)
committerCong Liu <congliu@google.com>
Mon, 20 Jun 2016 11:25:26 +0000 (11:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273150 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/opencl.cl

index e8e3b8f753800cc130d4476dc5148b0fe8e8aaac..d8f5f0245bd57e05b57afed8b138e44143655c22 100644 (file)
@@ -1,12 +1,12 @@
-// RUN: %clang %s
-// RUN: %clang -std=cl %s
-// RUN: %clang -std=cl1.1 %s
-// RUN: %clang -std=cl1.2 %s
-// RUN: %clang -std=cl2.0 %s
-// RUN: %clang -std=CL %s
-// RUN: %clang -std=CL1.1 %s
-// RUN: %clang -std=CL1.2 %s
-// RUN: %clang -std=CL2.0 %s
+// RUN: %clang -fsyntax-only %s
+// RUN: %clang -fsyntax-only -std=cl %s
+// RUN: %clang -fsyntax-only -std=cl1.1 %s
+// RUN: %clang -fsyntax-only -std=cl1.2 %s
+// RUN: %clang -fsyntax-only -std=cl2.0 %s
+// RUN: %clang -fsyntax-only -std=CL %s
+// RUN: %clang -fsyntax-only -std=CL1.1 %s
+// RUN: %clang -fsyntax-only -std=CL1.2 %s
+// RUN: %clang -fsyntax-only -std=CL2.0 %s
 // RUN: not %clang_cc1 -std=c99 -DOPENCL %s 2>&1 | FileCheck --check-prefix=CHECK-C99 %s
 // RUN: not %clang_cc1 -std=invalid -DOPENCL %s 2>&1 | FileCheck --check-prefix=CHECK-INVALID %s
 // CHECK-C99: error: invalid argument '-std=c99' not allowed with 'OpenCL'