Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git] / gcc / testsuite / gfortran.dg / PR100136.f90
blob922af4aecc3d52e7d6ac5a46fca236a78066d10e
1 ! { dg-do run }
2 ! { dg-options "-fcheck=pointer" }
3 ! { dg-shouldfail "Argument not allocated" }
4 ! { dg-output "Fortran runtime error: Allocatable actual argument 'c_init2' is not allocated" }
6 ! Tests fix for PR100136
8 ! Test cut down from PR58586
11 module test_pr58586_mod
12 implicit none
14 type :: a
15 end type
17 type :: c
18 type(a), allocatable :: a
19 end type
21 contains
23 subroutine add_class_c (d)
24 class(c), value :: d
25 end subroutine
27 class(c) function c_init2()
28 allocatable :: c_init2
29 end function
31 end module test_pr58586_mod
33 program test_pr58586
34 use test_pr58586_mod
36 ! This needs to execute, to see whether the segfault at runtime is resolved
37 call add_class_c(c_init2())
39 end program