PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr61921.f90
blob52b61762a0116fd74959dba91824bf618f406076
1 ! { dg-do compile }
2 ! { dg-options "-O2 -fipa-pta" }
3 MODULE min_heap
4 TYPE heap_t
5 END TYPE heap_t
6 CONTAINS
7 ELEMENTAL FUNCTION get_left_child(n) RESULT (child)
8 INTEGER, INTENT(IN) :: n
9 END FUNCTION get_left_child
10 ELEMENTAL FUNCTION get_value(heap, n) RESULT (value)
11 TYPE(heap_t), INTENT(IN) :: heap
12 INTEGER, INTENT(IN) :: n
13 END FUNCTION get_value
14 END MODULE min_heap