Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/requires-7.f90

raw
1 subroutine bar2
2 block
3 !$omp requires unified_shared_memory ! { dg-error "must appear in the specification part of a program unit" }
4 end block
5 end
6
7 subroutine bar
8 contains
9 subroutine foo
10 !$omp requires unified_shared_memory ! { dg-error "must appear in the specification part of a program unit" }
11 end
12 end
13
14 module m
15 contains
16 subroutine foo
17 !$omp requires unified_shared_memory ! { dg-error "must appear in the specification part of a program unit" }
18 end
19 end
20
21 module m2
22 interface
23 module subroutine foo()
24 end
25 end interface
26 end
27
28 submodule (m2) m2_sub
29 !$omp requires unified_shared_memory
30 contains
31 module procedure foo
32 end
33 end
34
35 program main
36 contains
37 subroutine foo
38 !$omp requires unified_shared_memory ! { dg-error "must appear in the specification part of a program unit" }
39 end
40 end