re PR c++/16205 (ICE with -Wall on no-throw specifier)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 28 Jun 2004 02:14:53 +0000 (02:14 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 28 Jun 2004 02:14:53 +0000 (19:14 -0700)
2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/16205
        * g++.dg/warn/Wsequence-point-1.C: New test.

From-SVN: r83760

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsequence-point-1.C [new file with mode: 0644]

index 1a72169f9aabdba42a6f27bb4e064bbb98c353df..e655ebf42141f18b423d309e1e921a80be163326 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c++/16205
+       * g++.dg/warn/Wsequence-point-1.C: New test.
+
 2004-06-27  Paul Brook  <paul@codesourcery.com>
 
        * 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 (file)
index 0000000..fb5b8a1
--- /dev/null
@@ -0,0 +1,11 @@
+// { dg-do compile }
+// { dg-options "-Wsequence-point" }
+struct C
+{
+  ~C() throw();
+};
+
+void t_test1 (C* mapping)
+{
+  delete [] mapping;
+}