aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/f2c_5.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/f2c_5.f90')
-rwxr-xr-xgcc/testsuite/gfortran.dg/f2c_5.f9012
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/f2c_5.f90 b/gcc/testsuite/gfortran.dg/f2c_5.f90
new file mode 100755
index 00000000000..cfc37c82e39
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/f2c_5.f90
@@ -0,0 +1,12 @@
+! { dg-do run }
+! { dg-additional-sources f2c_5.c }
+! { dg-options "-fno-f2c -w" }
+! Check calling conventions without -ff2c
+program f2c_5
+ call f2c_5a()
+end
+
+real function f2c_5b(x)
+ double precision x
+ f2c_5b = x
+end