summaryrefslogtreecommitdiff
path: root/flang/test/Semantics/OpenMP/error.f90
diff options
context:
space:
mode:
Diffstat (limited to 'flang/test/Semantics/OpenMP/error.f90')
-rw-r--r--flang/test/Semantics/OpenMP/error.f908
1 files changed, 8 insertions, 0 deletions
diff --git a/flang/test/Semantics/OpenMP/error.f90 b/flang/test/Semantics/OpenMP/error.f90
new file mode 100644
index 000000000000..067417a8cda3
--- /dev/null
+++ b/flang/test/Semantics/OpenMP/error.f90
@@ -0,0 +1,8 @@
+!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=51
+
+subroutine f00(x)
+!ERROR: The ERROR directive with AT(EXECUTION) cannot appear in the specification part
+ !$omp error at(execution) message("Haaa!")
+ integer :: x
+end
+