summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr43711.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/gomp/pr43711.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/gomp/pr43711.f9018
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/gomp/pr43711.f90 b/gcc/testsuite/gfortran.dg/gomp/pr43711.f90
new file mode 100644
index 000000000..e47e586ea
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/gomp/pr43711.f90
@@ -0,0 +1,18 @@
+! { dg-do compile }
+! { dg-options "-fopenmp" }
+!
+! PR fortran/43711 uninformative error message for two 'nowait' in omp statement
+! Contributed by Bill Long <longb AT cray DOT com>
+
+program NF03_2_5_2_1a
+ !$omp parallel
+ !$omp sections
+ !$omp section
+ print *, 'FAIL'
+ !$omp section
+ print *, 'FAIL'
+ !$omp end sections nowait nowait ! { dg-error "Unexpected junk" }
+ !$omp end parallel
+end program NF03_2_5_2_1a
+
+! { dg-excess-errors "Unexpected" }