Commit 8e30a818 by Paolo Carlini Committed by Paolo Carlini

re PR testsuite/49917 (g++.dg/init/for1.C wrong?)

2011-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r176962
parent 7d0300ed
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
......
// 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;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment