* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gfortran.dg / func_result_7.f90
blob9a982f1e6fda3071d394b6c61257f8909fcd9fe2
1 ! { dg-do compile }
3 ! PR 50073: gfortran must not accept function name when result name is present
5 ! Contributed by Vittorio Zecca <zeccav@gmail.com>
7 function fun() result(f)
8 pointer fun ! { dg-error "not allowed" }
9 dimension fun(1) ! { dg-error "not allowed" }
10 f=0
11 end