URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.benjamin/] [18208.C] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// 981204 bkoz
// g++/18208
typedef unsigned int uint_32;
class puertorico {
public:
void *f ();
private:
uint_32 member;
};
void foo( )
{
uint_32 ui;
puertorico obj;
// Bug using static_cast<>
ui = static_cast<uint_32>(obj); // { dg-error "" } // ERROR -
// Bug when missing the pair of braces
ui = (uint_32) obj.f; // { dg-error "" } // ERROR -
}
Go to most recent revision | Compare with Previous | Blame | View Log