URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p9068.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// prms-id: 9068
struct ostream {
void operator<< (int); // { dg-message "candidate is" } fn ref in err msg
};
class C {
public:
static int& i ();
static int& i (int signatureDummy);
};
void foo (ostream& lhs, const C& rhs)
{
lhs << rhs.i; // { dg-error "match" } no such i for any opr << ()
}
int& C::i () {
static int _i = 4711;
return _i;
}
Go to most recent revision | Compare with Previous | Blame | View Log