2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.benjamin / 16077.C
blob9f854b5e189b19492fa091a203f147dc150c71db
1 // { dg-do assemble  }
2 // 981203 bkoz
3 // g++/16077
4 // { dg-options "-Wconversion" }
6 class nicaragua;
7 struct colombia {
8    colombia();
9    colombia(const colombia &);
10    colombia(const nicaragua &);
11    colombia &operator= (const colombia&);
14 struct nicaragua {
15 public:
16    nicaragua();
17    nicaragua(const nicaragua&);
18    operator colombia();
21 void peace(const colombia&);
23 void foo(nicaragua& b) {
24   peace(b); // { dg-warning "" } // WARNING -