2 ! Test the fix for PR41706, in which arguments of class methods that
3 ! were themselves class methods did not work.
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
11 procedure, nopass :: a
12 procedure, nopass :: b
14 procedure, nopass :: d
36 if (abs(x-3.0)>1E-3) call abort()
42 r = x%a (1.1) ! worked
43 if (r .ne. a (1.1)) call abort
45 r = x%a (b (1.2)) ! worked
46 if (r .ne. a(b (1.2))) call abort
48 r = b ( x%a (1.3)) ! worked
49 if (r .ne. b(a (1.3))) call abort
51 r = x%a(x%b (1.4)) ! failed
52 if (r .ne. a(b (1.4))) call abort
54 r = x%a(x%c ()) ! failed
55 if (r .ne. a(c (x))) call abort
57 call x%d (x%a(1.5)) ! failed
64 class(t),allocatable :: x
68 ! { dg-final { cleanup-modules "m" } }