From: Paolo Carlini Date: Sat, 30 Jul 2011 20:29:29 +0000 (+0000) Subject: re PR testsuite/49917 (g++.dg/init/for1.C wrong?) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e30a818ce63836b9cf7495b111058efaff459d1;p=gcc.git 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 --- 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; } };