Use writable temporary file for test compiler output instead of hardcoded name. NFCI.
authorJorge Gorbe Moya <jgorbe@google.com>
Fri, 8 Apr 2022 17:57:20 +0000 (10:57 -0700)
committerJorge Gorbe Moya <jgorbe@google.com>
Fri, 8 Apr 2022 17:57:27 +0000 (10:57 -0700)
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

index b41269f..f9b515e 100644 (file)
@@ -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;
index 48d351f..793e996 100644 (file)
@@ -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;
 
index 7f66e90..cb3bc88 100644 (file)
@@ -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;
 
index 86d139f..07029df 100644 (file)
@@ -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 {