URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [string1.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: mrs@wrs.com (Mike Stump)
class Wrapper {
public:
static const char msgPtr[];
static const char *JunkFunc() {
return &msgPtr[0];
}
};
const char Wrapper::msgPtr[] = "Hello world.";
int main() {
const char *p1 = &Wrapper::msgPtr[0];
const char *p2 = Wrapper::JunkFunc();
if (p1 != p2)
return 1;
}
Go to most recent revision | Compare with Previous | Blame | View Log