Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/dispatch-10.f90

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-fdump-tree-original -fdump-tree-gimple" }
3
4 ! Check that the right call to f is wrapped in a GOMP_DISPATCH internal function
5 ! before translation and that it is stripped during gimplification.
6
7 subroutine g(x,f)
8 interface
9 integer function f(y)
10 allocatable :: f
11 integer :: y
12 end
13 end interface
14 integer, allocatable :: X(:)
15
16 !$omp dispatch
17 x(f(3)) = f(f(2))
18 end
19
20 ! { dg-final { scan-tree-dump-times "D\.\[0-9]+ = \.GOMP_DISPATCH \\(f \\(&D\.\[0-9]+\\)\\);" 1 "original" } }
21 ! { dg-final { scan-tree-dump-times "D\.\[0-9]+ = f \\(&D\.\[0-9]+\\);" 1 "gimple" } }