From: Kito Cheng Date: Mon, 21 Jun 2021 13:19:38 +0000 (+0800) Subject: testuite: Add pthread check to dg-module-cmi for omp module testing X-Git-Tag: basepoints/gcc-13~6597 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0e40ea0640aa0b324ec17e72154997468f33bc7;p=thirdparty%2Fgcc.git testuite: Add pthread check to dg-module-cmi for omp module testing 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. --- diff --git a/gcc/testsuite/g++.dg/modules/omp-1_a.C b/gcc/testsuite/g++.dg/modules/omp-1_a.C index 94e1171f03cb..7ddb776d6a15 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 b0d4bbc6e8a4..e030ac7acf7b 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])