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/] [addrof1.C] - Rev 305
Compare with Previous | Blame | View Log
// { dg-do run }
extern "C" void abort ();
typedef struct st {
unsigned char a;
unsigned char b;
unsigned char c;
unsigned char d;
} __attribute__((aligned(4))) st;
void testme(int, int, int);
static inline void
stupid_func(st s)
{
testme(s.a, s.b, s.c);
}
int main()
{
st s;
s.a = s.b = s.c = 216;
stupid_func(s);
return 0;
}
void testme(int a, int b, int c)
{
if (a != 216 || b != 216 || c != 216)
abort();
}