Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_46.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib -lcaf_single" }
3 !
4 ! Test the fix for PR83319
5 !
6 module foo_module
7 implicit none
8 type foo
9 integer, allocatable :: i(:)
10 end type
11 end module
12
13 use foo_module
14 implicit none
15 type(foo), save :: bar[*]
16 allocate(bar%i(1)) ! Used to ICE here.
17 end