URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed old-abort
|
// GROUPS passed old-abort
|
class word
|
class word
|
{
|
{
|
unsigned char b1, b2;
|
unsigned char b1, b2;
|
public:
|
public:
|
word (unsigned int i = 0) { b1 = i & 0xff; b2 = (i & 0xff00) >> 8; }
|
word (unsigned int i = 0) { b1 = i & 0xff; b2 = (i & 0xff00) >> 8; }
|
operator unsigned int () { return (b2 << 8) + b1; }
|
operator unsigned int () { return (b2 << 8) + b1; }
|
};
|
};
|
|
|
class just_another
|
class just_another
|
{
|
{
|
int foo;
|
int foo;
|
char bar[23];
|
char bar[23];
|
};
|
};
|
|
|
int mumble(word w)
|
int mumble(word w)
|
{
|
{
|
just_another *jap;
|
just_another *jap;
|
unsigned bar;
|
unsigned bar;
|
|
|
bar = w;
|
bar = w;
|
|
|
jap = new just_another [w];
|
jap = new just_another [w];
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.