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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [dummy_procedure_5.f90] - Blame information for rev 858

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 50517: gfortran must detect that actual argument type is different from dummy argument type (r178939)
4
!
5
! Contributed by Vittorio Zecca 
6
 
7
program main
8
 
9
  type t
10
    integer g
11
  end type
12
 
13
  type u
14
    integer g
15
  end type
16
 
17
  type(u), external :: ufunc
18
  call sub(ufunc)            ! { dg-error "Type/rank mismatch in return value" }
19
 
20
contains
21
 
22
  subroutine sub(tfunc)
23
    type(t), external :: tfunc
24
  end subroutine
25
 
26
end program

powered by: WebSVN 2.1.0

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