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
This commit is contained in:
parent
7d0300ed91
commit
8e30a818ce
|
@ -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>
|
2011-07-30 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||||
|
|
||||||
PR fortran/48876
|
PR fortran/48876
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
// PR c++/13865
|
// PR c++/13865
|
||||||
// Bug: We were destroying 'a' before executing the loop.
|
// Bug: We were destroying 'a' before executing the loop.
|
||||||
|
|
||||||
|
// { dg-do run }
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
@ -13,7 +15,7 @@ public:
|
||||||
~A()
|
~A()
|
||||||
{
|
{
|
||||||
printf("A dtor\n");
|
printf("A dtor\n");
|
||||||
if (i != 1)
|
if (i != 2)
|
||||||
r = 1;
|
r = 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue