summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/copy3.C
blob: 3b74a905f5e56d4fbaa3115a5c887e7df536ab11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do link  }
// Origin: ericp@mit.edu

class bar {
};

class foo {  
  foo (const foo &f);

public:
  
  foo (bar x) {}
  foo () {}
  
  void test (const foo &f) {}
};

int main (void) {
  foo f;
  bar b;

  f.test (b);
}