From 0260e27840e7de9b5ade7c323ee61cca61e5631f Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Sat, 4 Nov 2017 13:54:27 +0000 Subject: [PATCH] re PR fortran/70330 (ICE with -Wextra -Wno-unused-dummy-argument and unused optional dummy argument) 2017-11-04 Thomas Koenig PR fortran/70330 * gfortran.dg/pr70330.f90: New test. From-SVN: r254406 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/pr70330.f90 | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/pr70330.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3997311bdd4..7ef59a71f22 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-11-04 Thomas Koenig + + PR fortran/70330 + * gfortran.dg/pr70330.f90: New test. + 2017-11-04 Thomas Koenig PR fortran/29600 diff --git a/gcc/testsuite/gfortran.dg/pr70330.f90 b/gcc/testsuite/gfortran.dg/pr70330.f90 new file mode 100644 index 00000000000..29f5f7b6a04 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr70330.f90 @@ -0,0 +1,7 @@ +! { dg-do compile } +! { dg-additional-options "-Wall -Wextra -Wno-unused-dummy-argument" } +! PR fortran/70330 - this used to cause an ICE. +! Test case by Vladimir Fuka +function f(o) ! { dg-warning "Return value of function" } + optional o +end function f -- 2.30.2