public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tobias Burnus <burnus@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/omp/gcc-11] g++.dg/gomp/clause-3.C: Fix - missing in r12-438-g1580fc7 [PR100422]
Date: Fri, 14 May 2021 08:51:04 +0000 (GMT)	[thread overview]
Message-ID: <20210514085104.68647386FC26@sourceware.org> (raw)

https://gcc.gnu.org/g:1c5e4b8d9b0e786dc0acb4e3ef33a34b2f07df96

commit 1c5e4b8d9b0e786dc0acb4e3ef33a34b2f07df96
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri May 14 10:04:14 2021 +0200

    g++.dg/gomp/clause-3.C: Fix - missing in r12-438-g1580fc7 [PR100422]
    
    gcc/testsuite/
            PR testsuite/100422
            * g++.dg/gomp/clause-3.C: Use 'reduction(&:..)' instead of '...(&&:..)'.
    
    (cherry picked from commit af4e4d35f0b84d7c2f57a7b682a09116e9911142)

Diff:
---
 gcc/testsuite/ChangeLog.omp          | 8 ++++++++
 gcc/testsuite/g++.dg/gomp/clause-3.C | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/ChangeLog.omp b/gcc/testsuite/ChangeLog.omp
index d4a89ce34f8..01b68bdf790 100644
--- a/gcc/testsuite/ChangeLog.omp
+++ b/gcc/testsuite/ChangeLog.omp
@@ -1,3 +1,11 @@
+2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
+
+	Backported from master:
+	2021-05-05  Tobias Burnus  <tobias@codesourcery.com>
+
+	PR testsuite/100422
+	* g++.dg/gomp/clause-3.C: Use 'reduction(&:..)' instead of '...(&&:..)'.
+
 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
 
 	Backported from master:
diff --git a/gcc/testsuite/g++.dg/gomp/clause-3.C b/gcc/testsuite/g++.dg/gomp/clause-3.C
index e0edc873483..aad97d6ad62 100644
--- a/gcc/testsuite/g++.dg/gomp/clause-3.C
+++ b/gcc/testsuite/g++.dg/gomp/clause-3.C
@@ -56,7 +56,7 @@ foo (int x)
     ;
 #pragma omp p reduction (|:d) // { dg-error "user defined reduction not found for" }
     ;
-#pragma omp p reduction (&&:d) // { dg-error "user defined reduction not found for" }
+#pragma omp p reduction (&:d) // { dg-error "user defined reduction not found for" }
     ;
 #pragma omp p copyin (d) // { dg-error "must be 'threadprivate'" }
     ;


                 reply	other threads:[~2021-05-14  8:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210514085104.68647386FC26@sourceware.org \
    --to=burnus@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).