r273150 - Add -fsyntax-only to Driver/opencl.cl test.

Cong Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 20 04:25:28 PDT 2016


Author: congliu
Date: Mon Jun 20 06:25:26 2016
New Revision: 273150

URL: http://llvm.org/viewvc/llvm-project?rev=273150&view=rev
Log:
Add -fsyntax-only to Driver/opencl.cl test.

Modified:
    cfe/trunk/test/Driver/opencl.cl

Modified: cfe/trunk/test/Driver/opencl.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/opencl.cl?rev=273150&r1=273149&r2=273150&view=diff
==============================================================================
--- cfe/trunk/test/Driver/opencl.cl (original)
+++ cfe/trunk/test/Driver/opencl.cl Mon Jun 20 06:25:26 2016
@@ -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'




More information about the cfe-commits mailing list