diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/gomp/taskgroup-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/gomp/taskgroup-1.C | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.dg/gomp/taskgroup-1.C b/gcc/testsuite/g++.dg/gomp/taskgroup-1.C index dcab0bb646..e15d59d947 100644 --- a/gcc/testsuite/g++.dg/gomp/taskgroup-1.C +++ b/gcc/testsuite/g++.dg/gomp/taskgroup-1.C @@ -5,12 +5,13 @@ foo (int x) { bad1: // { dg-error "jump to label" } #pragma omp taskgroup - goto bad1; // { dg-error "from here|exits OpenMP" } + goto bad1; // { dg-message "from here|exits OpenMP" } - goto bad2; // { dg-error "from here" } + goto bad2; // { dg-message "from here" } #pragma omp taskgroup { - bad2: ; // { dg-error "jump to label|enters OpenMP" } + bad2: ; // { dg-error "jump to label" } + // { dg-message "enters OpenMP" "" { target *-*-* } 13 } } #pragma omp taskgroup @@ -24,9 +25,10 @@ foo (int x) switch (x) { #pragma omp taskgroup - { case 0:; } // { dg-error "jump|enters" } + { case 0:; } // { dg-error "jump" } + // { dg-message "enters" "" { target *-*-* } 28 } } } -// { dg-error "invalid branch to/from an OpenMP structured block" "" { target *-*-* } 8 } +// { dg-error "invalid branch to/from OpenMP structured block" "" { target *-*-* } 8 } // { dg-error "invalid entry to OpenMP structured block" "" { target *-*-* } 10 } |