OSDN Git Service

* trans.c (trans_code): Set backend locus early.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / allocatable_function_2.f90
1 ! { dg-do compile }
2 ! Test constraints on ALLOCATABLE functions
3 program alloc_fun
4
5 contains
6
7     elemental function foo (n)
8         integer, intent(in) :: n
9         integer, allocatable :: foo(:) ! { dg-error "ALLOCATABLE .* ELEMENTAL" }
10     end function foo
11
12 end program alloc_fun