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

Subversion Repositories openrisc

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

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 "-c" }
3
!
4
! Functions shall not have an initializer.
5
!
6
! Some tests were moved from func_decl_4.f90 to here.
7
!
8
 
9
function f1()                      ! { dg-error "cannot have an initializer" }
10
  integer :: f1 = 42
11
end function
12
 
13
function f2() RESULT (r)           ! { dg-error "cannot have an initializer" }
14
  integer :: r = 42
15
end function

powered by: WebSVN 2.1.0

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