From: Andrew Pinski Date: Mon, 28 Jun 2004 02:14:53 +0000 (+0000) Subject: re PR c++/16205 (ICE with -Wall on no-throw specifier) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10317a4f4332e9423c54cb2e3418963dabefa6ca;p=gcc.git re PR c++/16205 (ICE with -Wall on no-throw specifier) 2004-06-27 Andrew Pinski PR c++/16205 * g++.dg/warn/Wsequence-point-1.C: New test. From-SVN: r83760 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a72169f9aa..e655ebf4214 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-06-27 Andrew Pinski + + PR c++/16205 + * g++.dg/warn/Wsequence-point-1.C: New test. + 2004-06-27 Paul Brook * gfortran.fortran-torture/execute/specfics.f90: Use correct typing. diff --git a/gcc/testsuite/g++.dg/warn/Wsequence-point-1.C b/gcc/testsuite/g++.dg/warn/Wsequence-point-1.C new file mode 100644 index 00000000000..fb5b8a1a8cb --- /dev/null +++ b/gcc/testsuite/g++.dg/warn/Wsequence-point-1.C @@ -0,0 +1,11 @@ +// { dg-do compile } +// { dg-options "-Wsequence-point" } +struct C +{ + ~C() throw(); +}; + +void t_test1 (C* mapping) +{ + delete [] mapping; +}