[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / omp-declare-target03.f90
blob8b291f22f7fa9268b6448c7aa8d21930bddb55bf
1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -fopenmp
2 ! OpenMP Version 5.1
3 ! Check OpenMP construct validity for the following directives:
4 ! 2.14.7 Declare Target Directive
6 module mod1
7 end
9 program main
10 use mod1
12 !ERROR: The module name or main program name cannot be in a DECLARE TARGET directive
13 !$omp declare target (mod1)
15 !ERROR: The module name or main program name cannot be in a DECLARE TARGET directive
16 !$omp declare target (main)
17 end