diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2021-05-19 18:06:27 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-05-19 22:56:01 +0800 |
commit | a911287e13d1a1f95259cb60c57293eabc2a27b9 (patch) | |
tree | 6f1b39173feee55625f4a6f6c1f11e109c08b040 | |
parent | 5b953740da1976d90d974055c6d825c509c6e654 (diff) | |
download | gcc-a911287e13d1a1f95259cb60c57293eabc2a27b9.zip gcc-a911287e13d1a1f95259cb60c57293eabc2a27b9.tar.gz gcc-a911287e13d1a1f95259cb60c57293eabc2a27b9.tar.bz2 |
testuite: Check pthread for omp module testing
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.
-rw-r--r-- | gcc/testsuite/g++.dg/modules/omp-1_a.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/modules/omp-1_b.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/modules/omp-1_c.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/modules/omp-2_a.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/modules/omp-2_b.C | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/modules/omp-1_a.C b/gcc/testsuite/g++.dg/modules/omp-1_a.C index 722720a..94e1171 100644 --- a/gcc/testsuite/g++.dg/modules/omp-1_a.C +++ b/gcc/testsuite/g++.dg/modules/omp-1_a.C @@ -1,4 +1,5 @@ // { dg-additional-options "-fmodules-ts -fopenmp" } +// { dg-require-effective-target pthread } export module foo; // { dg-module-cmi foo } diff --git a/gcc/testsuite/g++.dg/modules/omp-1_b.C b/gcc/testsuite/g++.dg/modules/omp-1_b.C index f3f5d92..09d97e4a 100644 --- a/gcc/testsuite/g++.dg/modules/omp-1_b.C +++ b/gcc/testsuite/g++.dg/modules/omp-1_b.C @@ -1,4 +1,5 @@ // { dg-additional-options "-fmodules-ts -fopenmp" } +// { dg-require-effective-target pthread } import foo; diff --git a/gcc/testsuite/g++.dg/modules/omp-1_c.C b/gcc/testsuite/g++.dg/modules/omp-1_c.C index f30f611..599a5a5 100644 --- a/gcc/testsuite/g++.dg/modules/omp-1_c.C +++ b/gcc/testsuite/g++.dg/modules/omp-1_c.C @@ -1,4 +1,5 @@ // { dg-additional-options "-fmodules-ts" } +// { dg-require-effective-target pthread } import foo; diff --git a/gcc/testsuite/g++.dg/modules/omp-2_a.C b/gcc/testsuite/g++.dg/modules/omp-2_a.C index d2291b6..b0d4bbc 100644 --- a/gcc/testsuite/g++.dg/modules/omp-2_a.C +++ b/gcc/testsuite/g++.dg/modules/omp-2_a.C @@ -1,4 +1,5 @@ // { dg-additional-options "-fmodules-ts -fopenmp" } +// { dg-require-effective-target pthread } export module foo; // { dg-module-cmi foo } diff --git a/gcc/testsuite/g++.dg/modules/omp-2_b.C b/gcc/testsuite/g++.dg/modules/omp-2_b.C index 39f34c7..aeee4d1 100644 --- a/gcc/testsuite/g++.dg/modules/omp-2_b.C +++ b/gcc/testsuite/g++.dg/modules/omp-2_b.C @@ -1,4 +1,5 @@ // { dg-additional-options "-fmodules-ts" } +// { dg-require-effective-target pthread } import foo; |