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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fwhole-file -std=legacy" }
3
! Tests the fix for PR24886 in which the mismatch between the
4
! character lengths of the actual and formal arguments of
5
! 'foo' was not detected.
6
!
7
! Contributed by Uttam Pawar 
8
!
9
        subroutine foo(y)
10
           character(len=20) :: y
11
           y = 'hello world'
12
        end
13
 
14
        program test
15
           character(len=10) :: x
16
           call foo(x) ! { dg-warning "actual argument shorter" }
17
           write(*,*) 'X=',x
18
           pause
19
        end

powered by: WebSVN 2.1.0

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