Message ID | 20210622091500.105597-1-kito.cheng@sifive.com |
---|---|
State | New |
Headers | show |
Series | [committed] testuite: Add pthread check to dg-module-cmi for omp module testing | expand |
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])