Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/declare-variant-21.f90

raw
1 ! { dg-additional-options "-fdump-tree-gimple" }
2 ! { dg-final { scan-tree-dump-not "g \\(\\)" "gimple" } }
3 ! { dg-final { scan-tree-dump "i = f \\(\\);" "gimple" } }
4
5 ! PR fortran/115271
6
7 module m
8 interface
9 integer function f ()
10 end
11 integer function g ()
12 !$omp declare variant(f) match(construct={dispatch})
13 end
14 end interface
15 end
16
17 use m
18 !$omp dispatch
19 i = g()
20 end