From: Douglas Yung Date: Tue, 16 Apr 2019 22:52:05 +0000 (+0000) Subject: Modify test to use -S instead of -c so that it works when an external assembler is... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65d1e8db29b68cd72a89a48e55ea35df4a8372d2;p=clang Modify test to use -S instead of -c so that it works when an external assembler is used that is not present. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358537 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/modules.cpp b/test/Driver/modules.cpp index 90f334a281..7c549c1300 100644 --- a/test/Driver/modules.cpp +++ b/test/Driver/modules.cpp @@ -12,7 +12,7 @@ // Check compiling a .pcm file to a .o file. // -// RUN: %clang -std=c++2a %t/module.pcm -c -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE +// RUN: %clang -std=c++2a %t/module.pcm -S -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE // // CHECK-COMPILE: -cc1 {{.*}} {{-emit-obj|-S}} // CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}} @@ -21,7 +21,7 @@ // Check use of a .pcm file in another compilation. // -// RUN: %clang -std=c++2a -fmodule-file=%t/module.pcm -Dexport= %s -c -o %t/module.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-USE +// RUN: %clang -std=c++2a -fmodule-file=%t/module.pcm -Dexport= %s -S -o %t/module.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-USE // // CHECK-USE: -cc1 // CHECK-USE-SAME: {{-emit-obj|-S}} @@ -31,7 +31,7 @@ // Check combining precompile and compile steps works. // -// RUN: %clang -std=c++2a -x c++-module %s -c -o %t/module2.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-PRECOMPILE --check-prefix=CHECK-COMPILE +// RUN: %clang -std=c++2a -x c++-module %s -S -o %t/module2.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-PRECOMPILE --check-prefix=CHECK-COMPILE // Check that .cppm is treated as a module implicitly. //