]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testuite: Add pthread check to dg-module-cmi for omp module testing
authorKito Cheng <kito.cheng@sifive.com>
Mon, 21 Jun 2021 13:19:38 +0000 (21:19 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 22 Jun 2021 09:06:01 +0000 (17:06 +0800)
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
gcc/testsuite/g++.dg/modules/omp-2_a.C

index 94e1171f03cb8002677d2a8bf8aaeb69a8f1a65b..7ddb776d6a15f0508c90ff55a41bccac41be2ad5 100644 (file)
@@ -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])
 {
index b0d4bbc6e8a4d72c815291272e4640aef6c162f1..e030ac7acf7b6b32337c073e329d0d2dbc6c2350 100644 (file)
@@ -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])