summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/block-3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/gomp/block-3.C')
-rw-r--r--gcc/testsuite/g++.dg/gomp/block-3.C18
1 files changed, 10 insertions, 8 deletions
diff --git a/gcc/testsuite/g++.dg/gomp/block-3.C b/gcc/testsuite/g++.dg/gomp/block-3.C
index ff28175284..23f97268ed 100644
--- a/gcc/testsuite/g++.dg/gomp/block-3.C
+++ b/gcc/testsuite/g++.dg/gomp/block-3.C
@@ -18,19 +18,21 @@ void foo()
#pragma omp section
{ bad1: ; } // { dg-error "jump to label" }
#pragma omp section
- goto bad1; // { dg-error "from here|enters OpenMP" }
+ goto bad1; // { dg-message "from here|enters OpenMP" }
}
#pragma omp sections
{
- goto bad2; // { dg-error "from here" }
+ goto bad2; // { dg-message "from here" }
}
- bad2:; // { dg-error "jump|exits OpenMP" }
+ bad2:; // { dg-error "jump" }
+ // { dg-message "exits OpenMP" "" { target *-*-* } 28 }
- goto bad3; // { dg-error "from here" }
+ goto bad3; // { dg-message "from here" }
#pragma omp sections
{
- bad3: ; // { dg-error "jump|enters OpenMP" }
+ bad3: ; // { dg-error "jump" }
+ // { dg-message "enters OpenMP" "" { target *-*-* } 34 }
}
#pragma omp sections
@@ -58,6 +60,6 @@ void foo()
}
}
-// { dg-message "error: invalid branch to/from an OpenMP structured block" "" { target *-*-* } 21 }
-// { dg-message "error: invalid branch to/from an OpenMP structured block" "" { target *-*-* } 26 }
-// { dg-message "error: invalid entry to OpenMP structured block" "" { target *-*-* } 30 }
+// { dg-message "error: invalid branch to/from OpenMP structured block" "" { target *-*-* } 21 }
+// { dg-message "error: invalid branch to/from OpenMP structured block" "" { target *-*-* } 26 }
+// { dg-message "error: invalid entry to OpenMP structured block" "" { target *-*-* } 31 }