From: Thomas Koenig Date: Sat, 4 Nov 2017 13:54:27 +0000 (+0000) Subject: re PR fortran/70330 (ICE with -Wextra -Wno-unused-dummy-argument and unused optional... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0260e27840e7de9b5ade7c323ee61cca61e5631f;p=gcc.git 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 --- 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