diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/f2c_8.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/f2c_8.f90 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/f2c_8.f90 b/gcc/testsuite/gfortran.dg/f2c_8.f90 new file mode 100644 index 000000000..03baa36be --- /dev/null +++ b/gcc/testsuite/gfortran.dg/f2c_8.f90 @@ -0,0 +1,16 @@ +! { dg-do compile } +! { dg-options "-ff2c" } +! PR 25392 +! Verify that the type of the result variable matches the declared +! type of the function. The actual type of the function may be +! different for f2c calling conventions. +real function goo () result (foo) + real x + foo = sign(foo, x) +end + +real function foo () + real x + foo = sign(foo, x) +end + |