[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / declare-target03.f90
blobbb1ed90e390f3e92ec7e73120d9cab0706d8e11f
1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp -pedantic
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 subroutine bar
10 !$omp declare target (bar)
11 end subroutine
13 program main
14 use mod1
16 !ERROR: The module name or main program name cannot be in a DECLARE TARGET directive
17 !$omp declare target (mod1)
19 !PORTABILITY: Name 'main' declared in a main program should not have the same name as the main program
20 !ERROR: The module name or main program name cannot be in a DECLARE TARGET directive
21 !$omp declare target (main)
22 end