diff options
author | Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> | 2005-11-01 22:55:02 +0100 |
---|---|---|
committer | Tobias Schlüter <tobi@gcc.gnu.org> | 2005-11-01 22:55:02 +0100 |
commit | 0be8cb80ee8062154c853a2ea87fe01c287f91f6 (patch) | |
tree | 4335caee281df02cc8c23623c35e266e0f85e8f3 /gcc/testsuite/gfortran.dg/entry_5.f90 | |
parent | 6a8697062cd7b29a9bb17b5d4af09035e143a23d (diff) | |
download | gcc-0be8cb80ee8062154c853a2ea87fe01c287f91f6.tar.gz |
re PR fortran/24008 (gfortran too permissive about ENTRY syntax)
fortran/
PR fortran/24008
* decl.c (gfc_match_entry): Function entries need an argument list.
testsuite/
PR fortran/24008
* gfortran.dg/entry_5.f90: New.
* gfortran.fortran-torture/execute/entry_9.f90: Fix syntax error.
From-SVN: r106358
Diffstat (limited to 'gcc/testsuite/gfortran.dg/entry_5.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/entry_5.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/entry_5.f90 b/gcc/testsuite/gfortran.dg/entry_5.f90 new file mode 100644 index 00000000000..ad0554c76ad --- /dev/null +++ b/gcc/testsuite/gfortran.dg/entry_5.f90 @@ -0,0 +1,11 @@ +! { dg-do compile } +! PR 24008 +! an argument list to the entry is required +REAL FUNCTION funct() + funct = 0.0 + RETURN +! + ENTRY enter RESULT (answer) ! { dg-error "Unclassifiable statement" } + answer = 1.0 + RETURN +END FUNCTION funct |