aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/ctors11.C
blob: 8472fb89394e4b327c4ae6a15f92d5646408f2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Build don't link: 
// GROUPS passed constructors
// ctor file
// Message-Id: <9302081631.AA14744@tera.com>
// From: rrh@tera.com (Robert R. Henry)
// Date: Mon, 8 Feb 93 08:31:39 PST
extern "C" void printf(const char *,...);
class A{
public:
  inline A(int x){printf("constructing A with %d\n", x);}
};

class B:public A{
private:
public:
}; // ERROR - non-default constructor

main()
{
  B(10);// ERROR - B doesn't have a constructor taking int
}