URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.benjamin/] [16077.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// 981203 bkoz
// g++/16077
// { dg-options "-Wconversion" }
class nicaragua;
struct colombia {
colombia();
colombia(const colombia &);
colombia(const nicaragua &);
colombia &operator= (const colombia&);
};
struct nicaragua {
public:
nicaragua();
nicaragua(const nicaragua&);
operator colombia();
};
void peace(const colombia&);
void foo(nicaragua& b) {
peace(b); // { dg-warning "choosing 'nicaragua::operator" "nic" }
// { dg-warning "conversion" "conv" { target *-*-* } 24 }
// { dg-message "note" "note" { target *-*-* } 24 }
}
Go to most recent revision | Compare with Previous | Blame | View Log