2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / copy2.C
blob40ed576af19a102311b5b63ecdcd7a058b213127
1 // { dg-do assemble  }
2 // GROUPS passed copy-ctors
3 // copy file
4 // From: Vivek Khera <khera@cs.duke.edu>
5 // Date:     Mon, 15 Nov 1993 16:02:18 -0500
6 // Subject:  g++ 2.5.3 fails to automatically generate default initializer
7 // Message-ID: <9311152102.AA21248@thneed.cs.duke.edu>
9 class String
11   private:
12     char a[100];
13     int len;
14   public:
15     String();
18 String::String()
20     len = 0;
24 struct List
26     String item[100];
27     int num_items;
28 //    List();                   // uncomment this line to let compile work
31 int
32 main(int argc, char **argv)
34     List a;