Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / pr25923.f90
blobe7f6f6e7004c895d282938a35eda96e435042aab
1 ! { dg-do compile }
2 ! { dg-options "-O -Wuninitialized" }
4 module foo
5 implicit none
7 type bar
8 integer :: yr
9 end type
11 contains
13 function baz(arg) result(res) ! { dg-warning "res.yr' may be" "PR45505" { xfail ilp32 } }
14 type(bar), intent(in) :: arg
15 type(bar) :: res
16 logical, external:: some_func
17 if (.not. some_func(arg)) then
18 call fatal('arg not valid')
19 else
20 res = arg
21 end if
22 end function baz ! { dg-bogus "res.yr' may be" "PR45505" { xfail ilp32 } }
24 end module foo
26 ! { dg-final { cleanup-modules "foo" } }