AArch64: correct constraint on Upl early clobber alternatives
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_call_21.f03
blob47bbf348294ebf0821dc6423754c8317ef8ef09f
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR 50919: [OOP] Don't use vtable for NON_OVERRIDABLE TBP
6 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
8 module m
10 type t
11 contains
12   procedure, nopass, NON_OVERRIDABLE :: testsub
13   procedure, nopass, NON_OVERRIDABLE :: testfun
14 end type t
16 contains
18   subroutine testsub()
19     print *, "t's test"
20   end subroutine
22   integer function testfun()
23     testfun = 1
24   end function
26 end module m
29   use m
30   class(t), allocatable :: x
31   allocate(x)
32   call x%testsub()
33   print *,x%testfun()
34 end
36 ! { dg-final { scan-tree-dump-times "_vptr->" 0 "original" } }