FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / ctors11.C
blob195a8234560a652ac0af0615d29001aef9583e0d
1 // Build don't link: 
2 // GROUPS passed constructors
3 // ctor file
4 // Message-Id: <9302081631.AA14744@tera.com>
5 // From: rrh@tera.com (Robert R. Henry)
6 // Date: Mon, 8 Feb 93 08:31:39 PST
7 extern "C" int printf (const char *, ...);
8 class A{
9 public:
10   inline A(int x){printf("constructing A with %d\n", x);}
13 class B:public A{ // ERROR - non-default constructor
14 private:
15 public:
18 int main()
20   B(10);// ERROR - B doesn't have a constructor taking int