public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1716] testuite: Add pthread check to dg-module-cmi for omp module testing
@ 2021-06-22  9:14 Kito Cheng
  0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2021-06-22  9:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f0e40ea0640aa0b324ec17e72154997468f33bc7

commit r12-1716-gf0e40ea0640aa0b324ec17e72154997468f33bc7
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Mon Jun 21 21:19:38 2021 +0800

    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:
---
 gcc/testsuite/g++.dg/modules/omp-1_a.C | 2 +-
 gcc/testsuite/g++.dg/modules/omp-2_a.C | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-22  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22  9:14 [gcc r12-1716] testuite: Add pthread check to dg-module-cmi for omp module testing Kito Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).