From 7dcd698875cc6c73a9b10acad1b55aeb08bc9fca Mon Sep 17 00:00:00 2001 From: Jorge Gorbe Moya Date: Fri, 8 Apr 2022 10:57:20 -0700 Subject: [PATCH] Use writable temporary file for test compiler output instead of hardcoded name. NFCI. --- clang/test/Modules/cxx20-10-2-ex3.cpp | 2 +- clang/test/Modules/cxx20-10-2-ex4.cpp | 2 +- clang/test/Modules/cxx20-10-2-ex6.cpp | 2 +- clang/test/Modules/cxx20-10-2-ex7.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/Modules/cxx20-10-2-ex3.cpp b/clang/test/Modules/cxx20-10-2-ex3.cpp index b41269f..f9b515e 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 48d351f..793e996 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 7f66e90..cb3bc88 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 86d139f..07029df 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 { -- 2.7.4