[committed] testuite: Add pthread check to dg-module-cmi for omp module testing

Kito Cheng kito.cheng@sifive.com
Tue Jun 22 09:15:00 GMT 2021


gcc/testsuite:

	* g++.dg/modules/omp-1_a.C: Check pthread is available for
	dg-module-cmi.
	* g++.dg/modules/omp-2_a.C: Ditto.
---
 gcc/testsuite/g++.dg/modules/omp-1_a.C | 2 +-
 gcc/testsuite/g++.dg/modules/omp-2_a.C | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/modules/omp-1_a.C b/gcc/testsuite/g++.dg/modules/omp-1_a.C
index 94e1171f03c..7ddb776d6a1 100644
--- a/gcc/testsuite/g++.dg/modules/omp-1_a.C
+++ b/gcc/testsuite/g++.dg/modules/omp-1_a.C
@@ -2,7 +2,7 @@
 // { dg-require-effective-target pthread }
 
 export module foo;
-// { dg-module-cmi foo }
+// { dg-module-cmi foo { target pthread } }
 
 export inline void frob (unsigned (&ary)[64])
 {
diff --git a/gcc/testsuite/g++.dg/modules/omp-2_a.C b/gcc/testsuite/g++.dg/modules/omp-2_a.C
index b0d4bbc6e8a..e030ac7acf7 100644
--- a/gcc/testsuite/g++.dg/modules/omp-2_a.C
+++ b/gcc/testsuite/g++.dg/modules/omp-2_a.C
@@ -2,7 +2,7 @@
 // { dg-require-effective-target pthread }
 
 export module foo;
-// { dg-module-cmi foo }
+// { dg-module-cmi foo { target pthread } }
 
 // The OpenMPness doesn't escape to the interface.
 export void frob (unsigned (&ary)[64])
-- 
2.31.1



More information about the Gcc-patches mailing list