Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / copy3.C
blob3b74a905f5e56d4fbaa3115a5c887e7df536ab11
1 // { dg-do link  }
2 // Origin: ericp@mit.edu
4 class bar {
5 };
7 class foo {  
8   foo (const foo &f);
10 public:
11   
12   foo (bar x) {}
13   foo () {}
14   
15   void test (const foo &f) {}
18 int main (void) {
19   foo f;
20   bar b;
22   f.test (b);