Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.law / ctors11.C
blobc8b59b6792664b670783cc2a57366c90d66037f2
1 // { dg-do assemble  }
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{ // { dg-message "note" } non-default constructor
14 private:
15 public:
18 int main()
20   B(10);// { dg-error "match" } B doesn't have a constructor taking int
21   // { dg-message "candidate" "candidate note" { target *-*-* } 20 }