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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [whole_file_2.f90] - Blame information for rev 414

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-fwhole-file" }
3
! Tests the fix for PR26227 in which the interface mismatches
4
! below were not detected.
5
!
6
! Contributed by Andrew Pinski 
7
!
8
function a(b)
9
REAL ::b
10
b = 2.0
11
a = 1.0
12
end function
13
 
14
program gg
15
real :: h
16
character (5) :: chr = 'hello'
17
h = a(); ! { dg-error "Missing actual argument" }
18
call test ([chr]) ! { dg-error "Rank mismatch" }
19
end program gg
20
 
21
subroutine test (a)
22
  character (5) :: a
23
  if (a .ne. 'hello') call abort
24
end subroutine test
25
 

powered by: WebSVN 2.1.0

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