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