summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/new2.C
blob: 75d353da12407d209aee19fed858957bb6202276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do run  }
// { dg-options "-Wno-deprecated -fno-exceptions" }
// PRMS Id: 6267

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