diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_1.f90')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_1.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_1.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_1.f90 new file mode 100644 index 000000000..7ec77c178 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.dg/altreturn_1.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! { dg-options "-std=gnu" } + + subroutine foo (a) + real t, a, baz + call bar (*10) + t = 2 * baz () + IF (t.gt.0) t = baz () +10 END |