From 8e30a818ce63836b9cf7495b111058efaff459d1 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sat, 30 Jul 2011 20:29:29 +0000 Subject: [PATCH] re PR testsuite/49917 (g++.dg/init/for1.C wrong?) 2011-07-30 Paolo Carlini PR testsuite/49917 * g++.dg/init/for1.C: Fix. From-SVN: r176962 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/init/for1.C | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a681d8d315..c5a6f94fe27 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-30 Paolo Carlini + + PR testsuite/49917 + * g++.dg/init/for1.C: Fix. + 2011-07-30 Thomas Koenig PR fortran/48876 diff --git a/gcc/testsuite/g++.dg/init/for1.C b/gcc/testsuite/g++.dg/init/for1.C index 02f8a2d4810..420e85cff69 100644 --- a/gcc/testsuite/g++.dg/init/for1.C +++ b/gcc/testsuite/g++.dg/init/for1.C @@ -1,6 +1,8 @@ // PR c++/13865 // Bug: We were destroying 'a' before executing the loop. +// { dg-do run } + #include int i; @@ -13,7 +15,7 @@ public: ~A() { printf("A dtor\n"); - if (i != 1) + if (i != 2) r = 1; } }; -- 2.30.2