2 ! { dg-options -std=f2008 }
4 ! Contributed by mrestelli@gmail.com
5 ! Check that instead of an ICE the error message is emitted.
12 real, allocatable :: x(:)
16 ! x either needs an array spec, or y needs to be an array.
17 allocate( x , source=y ) ! { dg-error "Array specification or array-valued SOURCE= expression required in ALLOCATE statement" }