[clang] 9effb6f - [NFC] Use %clang_cc instead of %clang in c++20 module tests
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 21 19:51:00 PST 2021
Author: Chuanqi Xu
Date: 2021-12-22T11:50:47+08:00
New Revision: 9effb6f81620058b57316401807b23db99e1682d
URL: https://github.com/llvm/llvm-project/commit/9effb6f81620058b57316401807b23db99e1682d
DIFF: https://github.com/llvm/llvm-project/commit/9effb6f81620058b57316401807b23db99e1682d.diff
LOG: [NFC] Use %clang_cc instead of %clang in c++20 module tests
Added:
Modified:
clang/test/CXX/basic/basic.namespace/basic.namespace.general/p2.cppm
clang/test/Modules/concept.cppm
clang/test/Modules/odr_using_dependent_name.cppm
Removed:
################################################################################
diff --git a/clang/test/CXX/basic/basic.namespace/basic.namespace.general/p2.cppm b/clang/test/CXX/basic/basic.namespace/basic.namespace.general/p2.cppm
index 61f13ce01925b..9fa5120f88428 100644
--- a/clang/test/CXX/basic/basic.namespace/basic.namespace.general/p2.cppm
+++ b/clang/test/CXX/basic/basic.namespace/basic.namespace.general/p2.cppm
@@ -1,8 +1,8 @@
// Check that the compiler wouldn't crash due to inconsistent namesapce linkage
// RUN: rm -rf %t
// RUN: mkdir -p %t
-// RUN: %clang -std=c++20 %S/Inputs/p2.cppm --precompile -o %t/Y.pcm
-// RUN: %clang -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs %s -c -Xclang -verify
+// RUN: %clang_cc1 -x c++ -std=c++20 %S/Inputs/p2.cppm -emit-module-interface -o %t/Y.pcm
+// RUN: %clang_cc1 -x c++ -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs %s -fsyntax-only -verify
// expected-no-diagnostics
export module X;
import Y;
diff --git a/clang/test/Modules/concept.cppm b/clang/test/Modules/concept.cppm
index e14a158644afa..f171e6d082374 100644
--- a/clang/test/Modules/concept.cppm
+++ b/clang/test/Modules/concept.cppm
@@ -1,7 +1,7 @@
// RUN: rm -rf %t
// RUN: mkdir %t
-// RUN: %clang -std=c++20 %S/Inputs/concept/A.cppm --precompile -o %t/A.pcm
-// RUN: %clang -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs/concept %s -c -Xclang -verify
+// RUN: %clang_cc1 -x c++ -std=c++20 %S/Inputs/concept/A.cppm -emit-module-interface -o %t/A.pcm
+// RUN: %clang_cc1 -x c++ -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs/concept %s -fsyntax-only -verify
// expected-no-diagnostics
module;
diff --git a/clang/test/Modules/odr_using_dependent_name.cppm b/clang/test/Modules/odr_using_dependent_name.cppm
index 8d7ea9f57bedc..c2938855fdbe5 100644
--- a/clang/test/Modules/odr_using_dependent_name.cppm
+++ b/clang/test/Modules/odr_using_dependent_name.cppm
@@ -1,7 +1,7 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
-// RUN: %clang -std=c++20 %S/Inputs/odr_using_dependent_name/X.cppm --precompile -o %t/X.pcm
-// RUN: %clang -std=c++20 -I%S/Inputs/odr_using_dependent_name -fprebuilt-module-path=%t %s --precompile -c
+// RUN: %clang_cc1 -std=c++20 %S/Inputs/odr_using_dependent_name/X.cppm -emit-module-interface -o %t/X.pcm
+// RUN: %clang_cc1 -std=c++20 -I%S/Inputs/odr_using_dependent_name -fprebuilt-module-path=%t %s -emit-module-interface -fsyntax-only -verify
// expected-no-diagnostics
module;
#include "foo.h"
More information about the cfe-commits
mailing list