From: Cong Liu Date: Mon, 20 Jun 2016 11:25:26 +0000 (+0000) Subject: Add -fsyntax-only to Driver/opencl.cl test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13207cb1dd8ec68e051105f23e10b63e646cadab;p=clang Add -fsyntax-only to Driver/opencl.cl test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273150 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/opencl.cl b/test/Driver/opencl.cl index e8e3b8f753..d8f5f0245b 100644 --- a/test/Driver/opencl.cl +++ b/test/Driver/opencl.cl @@ -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'