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/] [result_in_spec_3.f90] - Blame information for rev 313

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 "-std=gnu -Wreturn-type" }
3
! PR fortran/34248
4
!
5
! There was an ICE for assumed-length functions
6
! if RESULT(...) was used and no value assigned
7
! to the result variable.
8
!
9
character(*) FUNCTION test() RESULT(ctab)
10
  ctab = "Hello"
11
END function test
12
 
13
FUNCTION test2() RESULT(res)      ! { dg-warning "not set" }
14
  character(*) :: res
15
END function test2

powered by: WebSVN 2.1.0

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