re PR testsuite/49917 (g++.dg/init/for1.C wrong?)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 30 Jul 2011 20:29:29 +0000 (20:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 30 Jul 2011 20:29:29 +0000 (20:29 +0000)
2011-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR testsuite/49917
* g++.dg/init/for1.C: Fix.

From-SVN: r176962

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/for1.C

index 3a681d8d31552f4945ac01a8ed06f06e9e8107ad..c5a6f94fe27ce0e86ffe70f9e8039e884295244c 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-30  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR testsuite/49917
+       * g++.dg/init/for1.C: Fix.
+
 2011-07-30  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/48876
index 02f8a2d48109ad7ecbf6466e7f65076f3732fcf7..420e85cff6964b2cc85f77957dcf51ed1798b0aa 100644 (file)
@@ -1,6 +1,8 @@
 // PR c++/13865
 // Bug: We were destroying 'a' before executing the loop.
 
+// { dg-do run }
+
 #include <stdio.h>
 
 int i;
@@ -13,7 +15,7 @@ public:
   ~A()
   {
     printf("A dtor\n");
-    if (i != 1)
+    if (i != 2)
       r = 1;
   }
 };