[clang] 7dcd698 - Use writable temporary file for test compiler output instead of hardcoded name. NFCI.

Jorge Gorbe Moya via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 11:00:20 PDT 2022


Author: Jorge Gorbe Moya
Date: 2022-04-08T10:57:27-07:00
New Revision: 7dcd698875cc6c73a9b10acad1b55aeb08bc9fca

URL: https://github.com/llvm/llvm-project/commit/7dcd698875cc6c73a9b10acad1b55aeb08bc9fca
DIFF: https://github.com/llvm/llvm-project/commit/7dcd698875cc6c73a9b10acad1b55aeb08bc9fca.diff

LOG: Use writable temporary file for test compiler output instead of hardcoded name. NFCI.

Added: 
    

Modified: 
    clang/test/Modules/cxx20-10-2-ex3.cpp
    clang/test/Modules/cxx20-10-2-ex4.cpp
    clang/test/Modules/cxx20-10-2-ex6.cpp
    clang/test/Modules/cxx20-10-2-ex7.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Modules/cxx20-10-2-ex3.cpp b/clang/test/Modules/cxx20-10-2-ex3.cpp
index b41269f06fb3c..f9b515e869bf5 100644
--- a/clang/test/Modules/cxx20-10-2-ex3.cpp
+++ b/clang/test/Modules/cxx20-10-2-ex3.cpp
@@ -1,6 +1,6 @@
 // Based on C++20 10.2 example 3.
 
-// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -o M.pcm
+// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -o %t
 
 export module M;
 struct S;

diff  --git a/clang/test/Modules/cxx20-10-2-ex4.cpp b/clang/test/Modules/cxx20-10-2-ex4.cpp
index 48d351f472307..793e9964aa9dc 100644
--- a/clang/test/Modules/cxx20-10-2-ex4.cpp
+++ b/clang/test/Modules/cxx20-10-2-ex4.cpp
@@ -1,6 +1,6 @@
 // Based on C++20 10.2 example 4.
 
-// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o M.pcm
+// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o %t
 
 export module M;
 

diff  --git a/clang/test/Modules/cxx20-10-2-ex6.cpp b/clang/test/Modules/cxx20-10-2-ex6.cpp
index 7f66e90b178ea..cb3bc88e7e728 100644
--- a/clang/test/Modules/cxx20-10-2-ex6.cpp
+++ b/clang/test/Modules/cxx20-10-2-ex6.cpp
@@ -1,6 +1,6 @@
 // Based on C++20 10.2 example 6.
 
-// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o M.pcm
+// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o %t
 
 export module M;
 

diff  --git a/clang/test/Modules/cxx20-10-2-ex7.cpp b/clang/test/Modules/cxx20-10-2-ex7.cpp
index 86d139ff5b556..07029df876d29 100644
--- a/clang/test/Modules/cxx20-10-2-ex7.cpp
+++ b/clang/test/Modules/cxx20-10-2-ex7.cpp
@@ -1,6 +1,6 @@
 // Based on C++20 10.2 example 6.
 
-// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o M.pcm
+// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o %t
 
 export module M;
 export namespace N {


        


More information about the cfe-commits mailing list