From: Fangrui Song Date: Fri, 27 Sep 2019 05:37:06 +0000 (+0000) Subject: [test] Use %clang_cc1 instead of %clang -cc1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30a86d713662851930f6cf07343aba0dd5836f26;p=clang [test] Use %clang_cc1 instead of %clang -cc1 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373043 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/align-global-large.c b/test/CodeGen/align-global-large.c index 14f5d8d9e1..e53323f65f 100644 --- a/test/CodeGen/align-global-large.c +++ b/test/CodeGen/align-global-large.c @@ -1,5 +1,5 @@ // PR13606 - Clang crashes with large alignment attribute -// RUN: %clang -cc1 -S -emit-llvm %s -o - -triple i686-pc-gnu | FileCheck %s +// RUN: %clang_cc1 -S -emit-llvm %s -o - -triple i686-pc-gnu | FileCheck %s // CHECK: x // CHECK: align diff --git a/test/CodeGenObjC/protocol-comdat.m b/test/CodeGenObjC/protocol-comdat.m index 1402ad0a04..79a1d55355 100644 --- a/test/CodeGenObjC/protocol-comdat.m +++ b/test/CodeGenObjC/protocol-comdat.m @@ -1,4 +1,4 @@ -// RUN: %clang -cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -emit-llvm -o - %s -Wno-objc-root-class | FileCheck %s +// RUN: %clang_cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -emit-llvm -o - %s -Wno-objc-root-class | FileCheck %s @protocol P - (void) method; diff --git a/test/Frontend/cc1-return-codes.c b/test/Frontend/cc1-return-codes.c index da329b9342..fde1b4adf2 100644 --- a/test/Frontend/cc1-return-codes.c +++ b/test/Frontend/cc1-return-codes.c @@ -1,4 +1,4 @@ // cc1 immediate arguments (arguments which displays information and exits) // shall exit indicating success (return code 0) -// RUN: %clang -cc1 -help -// RUN: %clang -cc1 -version +// RUN: %clang_cc1 -help +// RUN: %clang_cc1 -version diff --git a/test/Frontend/nostdlib-for-asmpp.s b/test/Frontend/nostdlib-for-asmpp.s index 330fee32a3..c1be5a2777 100644 --- a/test/Frontend/nostdlib-for-asmpp.s +++ b/test/Frontend/nostdlib-for-asmpp.s @@ -1,4 +1,4 @@ -// RUN: %clang -cc1 -x assembler-with-cpp -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist -std=c++11 -v %s 2>&1 | FileCheck %s +// RUN: %clang_cc1 -x assembler-with-cpp -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist -std=c++11 -v %s 2>&1 | FileCheck %s // The C++ stdlib path should not be included for an assembly source. // CHECK-NOT: usr/include/c++/ diff --git a/test/Misc/diag-macro-backtrace2.c b/test/Misc/diag-macro-backtrace2.c index 64fc5f6307..ca13dca074 100644 --- a/test/Misc/diag-macro-backtrace2.c +++ b/test/Misc/diag-macro-backtrace2.c @@ -1,4 +1,4 @@ -// RUN: not %clang -cc1 -fsyntax-only %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s #define a b #define b c diff --git a/test/Misc/driver-verify.c b/test/Misc/driver-verify.c index fa31f820b1..f858a3db85 100644 --- a/test/Misc/driver-verify.c +++ b/test/Misc/driver-verify.c @@ -1,5 +1,5 @@ // RUN: not %clang -verify %s 2>&1 | FileCheck %s -// RUN: %clang -cc1 -verify %s +// RUN: %clang_cc1 -verify %s // expected-no-diagnostics // Test that -verify is strictly rejected as unknown by the driver. diff --git a/test/Modules/builtin-import.mm b/test/Modules/builtin-import.mm index cbc312b059..8a27cb3584 100644 --- a/test/Modules/builtin-import.mm +++ b/test/Modules/builtin-import.mm @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang -cc1 -fsyntax-only -nobuiltininc -nostdinc++ -isysroot %S/Inputs/libc-libcxx/sysroot -isystem %S/Inputs/libc-libcxx/sysroot/usr/include/c++/v1 -isystem %S/Inputs/libc-libcxx/sysroot/usr/include -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x objective-c++ -fmodules-local-submodule-visibility %s +// RUN: %clang_cc1 -fsyntax-only -nobuiltininc -nostdinc++ -isysroot %S/Inputs/libc-libcxx/sysroot -isystem %S/Inputs/libc-libcxx/sysroot/usr/include/c++/v1 -isystem %S/Inputs/libc-libcxx/sysroot/usr/include -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x objective-c++ -fmodules-local-submodule-visibility %s #include #include diff --git a/test/Modules/umbrella-header-include-builtin.mm b/test/Modules/umbrella-header-include-builtin.mm index b14c73705c..9f8a45e179 100644 --- a/test/Modules/umbrella-header-include-builtin.mm +++ b/test/Modules/umbrella-header-include-builtin.mm @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang -cc1 -fsyntax-only -nobuiltininc -nostdinc++ -isysroot %S/Inputs/libc-libcxx/sysroot -isystem %S/Inputs/libc-libcxx/sysroot/usr/include/c++/v1 -isystem %S/Inputs/libc-libcxx/sysroot/usr/include -F%S/Inputs/libc-libcxx/sysroot/Frameworks -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x objective-c++ %s +// RUN: %clang_cc1 -fsyntax-only -nobuiltininc -nostdinc++ -isysroot %S/Inputs/libc-libcxx/sysroot -isystem %S/Inputs/libc-libcxx/sysroot/usr/include/c++/v1 -isystem %S/Inputs/libc-libcxx/sysroot/usr/include -F%S/Inputs/libc-libcxx/sysroot/Frameworks -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x objective-c++ %s #include diff --git a/test/Preprocessor/pragma_module.c b/test/Preprocessor/pragma_module.c index 90aa9481fb..c52d425375 100644 --- a/test/Preprocessor/pragma_module.c +++ b/test/Preprocessor/pragma_module.c @@ -1,9 +1,9 @@ // RUN: rm -rf %t // RUN: mkdir %t // RUN: echo 'module foo { module a {} module b {} } module bar {} module if {}' > %t/module.map -// RUN: %clang -cc1 -fmodules -fmodule-name=if -x c %t/module.map -emit-module -o %t/if.pcm -// RUN: %clang -cc1 -E -fmodules %s -fmodule-file=%t/if.pcm -verify -fmodule-name=foo -fmodule-map-file=%t/module.map -// RUN: %clang -cc1 -E -fmodules %s -fmodule-file=%t/if.pcm -verify -fmodule-name=foo -fmodule-map-file=%t/module.map -fmodules-local-submodule-visibility -DLOCAL_VIS +// RUN: %clang_cc1 -fmodules -fmodule-name=if -x c %t/module.map -emit-module -o %t/if.pcm +// RUN: %clang_cc1 -E -fmodules %s -fmodule-file=%t/if.pcm -verify -fmodule-name=foo -fmodule-map-file=%t/module.map +// RUN: %clang_cc1 -E -fmodules %s -fmodule-file=%t/if.pcm -verify -fmodule-name=foo -fmodule-map-file=%t/module.map -fmodules-local-submodule-visibility -DLOCAL_VIS // Just checking the syntax here; the semantics are tested elsewhere. #pragma clang module import // expected-error {{expected module name}}