]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix excess errors in pr85381-3.c testcase
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 31 May 2022 11:23:11 +0000 (12:23 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:31 +0000 (13:55 -0700)
Should probably be a fixup to 'openacc: Adjust test expectations to new
"kernels" handling'.

2022-05-31  Kwok Cheung Yeung  <kcy@codesourcery.com>

* testsuite/libgomp.oacc-c-c++-common/pr85381-3.c (foo_v, foo_w):
Re-add dg-warning entries.

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-3.c

index 5e7bd4a796aa5041fddf11e8e53a8de82d6aedb1..3e1ed8efed6d68f8b35ebbfe1253ee38eec5a402 100644 (file)
@@ -1,3 +1,8 @@
+2022-05-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c (foo_v, foo_w):
+       Re-add dg-warning entries.
+
 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
 
        Backport from mainline:
index 8352df01a38b7073da5d0a994f40b70bc58e950e..2a7e48116c32b3e86c39b2a02be490909bcdb32a 100644 (file)
@@ -9,6 +9,7 @@ int a;
 #pragma acc declare create(a)
 
 #pragma acc routine vector
+/* { dg-warning "region is vector partitioned but does not contain vector partitioned code" "" { target *-*-* } .+2 } */
 void __attribute__((noinline, noclone))
 foo_v (void)
 {
@@ -16,6 +17,8 @@ foo_v (void)
 }
 
 #pragma acc routine worker
+/* { dg-warning "region is worker partitioned but does not contain worker partitioned code" "" { target *-*-* } .+3 }
+   { dg-warning "region is vector partitioned but does not contain vector partitioned code" "" { target *-*-* } .+2 } */
 void __attribute__((noinline, noclone))
 foo_w (void)
 {