public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2680] Fix c-c++-common/goacc/mdc-2.c and g++.dg/goacc/mdc.C tests
@ 2022-09-15 11:37 Julian Brown
  0 siblings, 0 replies; only message in thread
From: Julian Brown @ 2022-09-15 11:37 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-2680-gd7171ba78d564144d5bd020bb13a85ed8276b4c7
Author: Julian Brown <julian@codesourcery.com>
Date:   Thu Sep 15 11:32:36 2022 +0000

    Fix c-c++-common/goacc/mdc-2.c and g++.dg/goacc/mdc.C tests
    
    These testsuite hunks got left attached to the wrong patch in the series
    I just posted. I will apply as obvious.
    
    2022-09-15  Julian Brown  <julian@codesourcery.com>
    
    gcc/testsuite/
            * c-c++-common/goacc/mdc-2.c: Update expected errors.
            * g++.dg/goacc/mdc.C: Likewise.

Diff:
---
 gcc/testsuite/c-c++-common/goacc/mdc-2.c | 2 ++
 gcc/testsuite/g++.dg/goacc/mdc.C         | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gcc/testsuite/c-c++-common/goacc/mdc-2.c b/gcc/testsuite/c-c++-common/goacc/mdc-2.c
index df3ce543d30..246625c76a2 100644
--- a/gcc/testsuite/c-c++-common/goacc/mdc-2.c
+++ b/gcc/testsuite/c-c++-common/goacc/mdc-2.c
@@ -37,7 +37,9 @@ t1 ()
 #pragma acc exit data detach(z[:]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 #pragma acc enter data attach(z[3]) /* { dg-error "expected pointer in .attach. clause" } */
+/* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 #pragma acc exit data detach(z[3]) /* { dg-error "expected pointer in .detach. clause" } */
+/* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 
 #pragma acc enter data attach(s.e)
 #pragma acc exit data detach(s.e) attach(z) /* { dg-error ".attach. is not valid for" } */
diff --git a/gcc/testsuite/g++.dg/goacc/mdc.C b/gcc/testsuite/g++.dg/goacc/mdc.C
index e8ba1cceba2..9d460f286b4 100644
--- a/gcc/testsuite/g++.dg/goacc/mdc.C
+++ b/gcc/testsuite/g++.dg/goacc/mdc.C
@@ -43,7 +43,9 @@ t1 ()
 #pragma acc exit data detach(rz[:]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 #pragma acc enter data attach(rz[3]) /* { dg-error "expected pointer in .attach. clause" } */
+/* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 #pragma acc exit data detach(rz[3]) /* { dg-error "expected pointer in .detach. clause" } */
+/* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 
 #pragma acc enter data attach(rs.e)
 #pragma acc exit data detach(rs.e) attach(rz) /* { dg-error ".attach. is not valid for" } */

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

only message in thread, other threads:[~2022-09-15 11:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-15 11:37 [gcc r13-2680] Fix c-c++-common/goacc/mdc-2.c and g++.dg/goacc/mdc.C tests Julian Brown

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