OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_4c.f03] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do link }
2
! { dg-additional-sources class_4a.f03 class_4b.f03 }
3
!
4
! Test the fix for PR41583, in which the different source files
5
! would generate the same 'vindex' for different class declared
6
! types.
7
!
8
! The test comprises class_4a, class_4b and class_4c.f03
9
!
10
! Contributed by Tobias Burnus 
11
!
12
  use m
13
  use m2
14
  type,extends(t) :: t3
15
  end type t3
16
 
17
  integer :: i
18
  class(t), allocatable :: a
19
  allocate(t3 :: a)
20
  select type(a)
21
    type is(t)
22
      i = 1
23
    type is(t2)
24
      i = 2
25
    type is(t3)
26
      i = 3
27
  end select
28
  print *, i
29
end
30
 
31
! { dg-final { cleanup-modules "m m2 m3" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.