]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-c++-common/gomp/map-6.c: Fix dg-error due to mapping changes
authorTobias Burnus <tobias@codesourcery.com>
Fri, 14 May 2021 11:41:52 +0000 (13:41 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 14 May 2021 11:41:52 +0000 (13:41 +0200)
OpenMP 5 relaxed some repetition rules such that some double-use
warnings no longer occur; that patch is not yet on mainline.

gcc/testsuite/
* c-c++-common/gomp/map-6.c: Remove two dg-error.

gcc/testsuite/c-c++-common/gomp/map-6.c

index 6ee59714847268f74f7acce4583d9d8af3216795..194e9e070ebb9c4e3435d4ab873e5db3422ba47e 100644 (file)
@@ -100,10 +100,10 @@ foo (void)
   #pragma omp target map (always, close)
   ;
 
-  #pragma omp target map (always, always)  /* { dg-error "'always' appears more than once in map clauses" } */
+  #pragma omp target map (always, always)  /* Note: 'always' appears more than once in map clauses  */
   ;
 
-  #pragma omp target map (always, always, close)  /* { dg-error "'always' appears more than once in map clauses" } */
+  #pragma omp target map (always, always, close)  /* Note: 'always' appears more than once in map clauses */
   ;
 
   #pragma omp target map (always, close, to: always, close, b7)