From 10317a4f4332e9423c54cb2e3418963dabefa6ca Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Mon, 28 Jun 2004 02:14:53 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/warn/Wsequence-point-1.C | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/warn/Wsequence-point-1.C 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; +} -- 2.30.2