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.
This commit is contained in:
Kito Cheng 2021-06-21 21:19:38 +08:00
parent 7a22d8a764
commit f0e40ea064
2 changed files with 2 additions and 2 deletions

View 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])
{

View 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])