diff options
Diffstat (limited to 'gcc/testsuite/gfortran.fortran-torture/execute/entry_10.f90')
-rw-r--r-- | gcc/testsuite/gfortran.fortran-torture/execute/entry_10.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/entry_10.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/entry_10.f90 new file mode 100644 index 000000000..0c21d76e3 --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/execute/entry_10.f90 @@ -0,0 +1,13 @@ + function foo () + foo = 4 + foo = foo / 2 + return + entry bar () + bar = 9 + bar = bar / 3 + end + + program entrytest + if (foo () .ne. 2) call abort () + if (bar () .ne. 3) call abort () + end |