Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/class_35.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do run } |
2 ! | |
3 ! PR 46313: [OOP] class container naming collisions | |
4 ! | |
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org> | |
6 | |
7 module one | |
8 type two_three | |
9 end type | |
10 end module | |
11 | |
12 module one_two | |
13 type three | |
14 end type | |
15 end module | |
16 | |
17 use one | |
18 use one_two | |
19 class(two_three), allocatable :: a1 | |
20 class(three), allocatable :: a2 | |
21 | |
131 | 22 if (same_type_as(a1,a2)) STOP 1 |
111 | 23 |
24 end |