* cfghooks.c (verify_flow_info): Disable check that all probabilities
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_25.f90
bloba78a1962b3b7f1d7366dc8ec0c560d2a3ba39ce2
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! Used to be rejected with:
5 ! Error: Variable 'x' at (1) is a coarray or has a coarray
6 ! component and is not ALLOCATABLE, SAVE nor a dummy argument
8 ! Is valid as "a" is allocatable, cf. C526
9 ! and http://j3-fortran.org/pipermail/j3/2011-June/004403.html
12 subroutine test2()
13 type t
14 integer, allocatable :: a(:)[:]
15 end type t
16 type(t) :: x
17 allocate(x%a(1)[*])
18 end subroutine test2