2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / defctor.C
blob76efaa1f0565ce4f98124f4b163d2d951cc22c81
1 // { dg-do run  }
2 // Bug: g++ doesn't generate default constructor.
4 class A {
5 public:
6   int i;
7 };
9 extern "C" int printf(const char *, ...);
11 int main () {
12   A a;
13   a.i = 1;
14   A b (a);
15   printf("%d\n",b.i);