annotate gcc/testsuite/gfortran.dg/class_30.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR fortran/46244 (comments 7 to 9)
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! gfortran accepted CLASS in bind(C) and SEQUENCE types
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 type :: t
kono
parents:
diff changeset
8 integer :: i
kono
parents:
diff changeset
9 end type t
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 type t2
kono
parents:
diff changeset
12 sequence
kono
parents:
diff changeset
13 class(t), pointer :: x ! { dg-error "Polymorphic component x at .1. in SEQUENCE or BIND" }
kono
parents:
diff changeset
14 end type t2
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 type, bind(C):: t3
kono
parents:
diff changeset
17 class(t), pointer :: y
kono
parents:
diff changeset
18 ! { dg-error "Polymorphic component y at .1. in SEQUENCE or BIND" "" { target *-*-* } .-1 }
kono
parents:
diff changeset
19 end type t3
kono
parents:
diff changeset
20 end