aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/new2.C
blob: ed4f68d9f317ad201b9531f5ea7d045169ffe5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PRMS Id: 6267
// Special g++ Options: -Wno-deprecated -fthis-is-variable -fno-exceptions

struct A {
  int i;
  A() { i = 2; }
};
 
main()
{
  A *p = new A ();
}