testuite: Check pthread for omp module testing
authorKito Cheng <kito.cheng@sifive.com>
Wed, 19 May 2021 10:06:27 +0000 (18:06 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 19 May 2021 14:56:01 +0000 (22:56 +0800)
gcc/testsuite/ChangeLog:

* g++.dg/modules/omp-1_a.C: Check pthread is available.
* g++.dg/modules/omp-1_b.C: Ditto.
* g++.dg/modules/omp-1_c.C: Ditto.
* g++.dg/modules/omp-2_a.C: Ditto.
* g++.dg/modules/omp-2_b.C: Ditto.

gcc/testsuite/g++.dg/modules/omp-1_a.C
gcc/testsuite/g++.dg/modules/omp-1_b.C
gcc/testsuite/g++.dg/modules/omp-1_c.C
gcc/testsuite/g++.dg/modules/omp-2_a.C
gcc/testsuite/g++.dg/modules/omp-2_b.C

index 722720a..94e1171 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fopenmp" }
+// { dg-require-effective-target pthread }
 
 export module foo;
 // { dg-module-cmi foo }
index f3f5d92..09d97e4 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fopenmp" }
+// { dg-require-effective-target pthread }
 
 import foo;
 
index f30f611..599a5a5 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts" }
+// { dg-require-effective-target pthread }
 
 import foo;
 
index d2291b6..b0d4bbc 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fopenmp" }
+// { dg-require-effective-target pthread }
 
 export module foo;
 // { dg-module-cmi foo }
index 39f34c7..aeee4d1 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts" }
+// { dg-require-effective-target pthread }
 
 import foo;