3 ! Verifying the runtime behavior of the intrinsic function SAME_TYPE_AS.
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
11 type, extends(t1) :: t2
15 CLASS(t1), pointer :: c1,c2
16 TYPE(t1), target :: x1
17 TYPE(t2) ,target :: x2
19 intrinsic :: SAME_TYPE_AS
24 l = SAME_TYPE_AS (x1,x1)
26 if (.not.l) call abort()
27 l = SAME_TYPE_AS (x1,x2)
32 l = SAME_TYPE_AS (c1,x1)
34 if (.not.l) call abort()
35 l = SAME_TYPE_AS (c1,x2)
41 l = SAME_TYPE_AS (c1,c2)
43 if (.not.l) call abort()
47 l = SAME_TYPE_AS (c1,c2)