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

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 "-c" }
3
!
4
! Functions shall not have an initializer.
5
!
6
 
7
function f1()                      ! { dg-error "cannot have an initializer" }
8
  integer :: f1 = 42
9
end function
10
 
11
function f2() RESULT (r)           ! { dg-error "cannot have an initializer" }
12
  integer :: r = 42
13
end function
14
 
15
function f3() RESULT (f3)          ! { dg-error "must be different than function name" }
16
  integer :: f3 = 42
17
end function                       ! { dg-error "Expecting END PROGRAM" }
18
! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }

powered by: WebSVN 2.1.0

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