nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / same_type_as_1.f03
blob5f349c7ba075c4ea3cbf0ad58fa9bc9df9e0b276
1 ! { dg-do compile }
3 ! Error checking for the intrinsic functions SAME_TYPE_AS and EXTENDS_TYPE_OF.
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7  type :: t1
8   integer :: i
9  end type
11  type :: ts
12   sequence
13   integer :: j
14  end type
16  TYPE(t1) :: x1
17  TYPE(ts) :: x2
19  integer :: i
21  print *, SAME_TYPE_AS (i,x1)   ! { dg-error "cannot be of type INTEGER" }
22  print *, SAME_TYPE_AS (x1,x2)  ! { dg-error "must be of an extensible type" }
24  print *, EXTENDS_TYPE_OF (i,x1)   ! { dg-error "cannot be of type INTEGER" }
25  print *, EXTENDS_TYPE_OF (x1,x2)  ! { dg-error "must be of an extensible type" }
27 end