lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / func_decl_4.f90
blobedc6c7e25c77cafbd276407fc90f64836c895494
1 ! { dg-do compile }
2 ! { dg-options "-c" }
4 ! Functions shall not have an initializer.
6 ! Due to -fwhole-file, the function declaration
7 ! warnings come before the init warnings; thus
8 ! the warning for the WRONG lines have been moved to
9 ! func_decl_5.f90
12 function f1()
13 integer :: f1 = 42 ! WRONG, see func_decl_5.f90
14 end function
16 function f2() RESULT (r)
17 integer :: r = 42 ! WRONG, see func_decl_5.f90
18 end function
20 function f3() RESULT (f3) ! { dg-error "must be different than function name" }
21 integer :: f3 = 42
22 end function ! { dg-error "Expecting END PROGRAM" }
23 ! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }