modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_30.f90
blob5fa5a0fac00bc7f8b1c49fa6c6ba0850e2cb81c9
1 ! { dg-do compile }
3 ! PR 59143: [OOP] Bogus warning with array-valued type-bound procedure
5 ! Contributed by Jürgen Reuter <juergen.reuter@desy.de>
7 module phs_single
9 type :: phs_single_t
10 contains
11 procedure, nopass :: d1, d2
12 end type
14 contains
16 subroutine evaluate (phs)
17 class(phs_single_t) :: phs
18 call func1 (phs%d1 ())
19 call func1 (phs%d2 (2))
20 end subroutine
22 subroutine func1 (p)
23 real :: p(2)
24 end subroutine
26 function d1 ()
27 real :: d1(2)
28 d1 = 1.
29 end function
31 function d2 (n)
32 real :: d2(n)
33 d2 = 1.
34 end function
36 end module