URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
typedef enum { C = 1, D = 2 } B;
|
typedef enum { C = 1, D = 2 } B;
|
extern void abort (void);
|
extern void abort (void);
|
|
|
struct S
|
struct S
|
{
|
{
|
B __attribute__ ((mode (byte))) a;
|
B __attribute__ ((mode (byte))) a;
|
B __attribute__ ((mode (byte))) b;
|
B __attribute__ ((mode (byte))) b;
|
};
|
};
|
|
|
void
|
void
|
foo (struct S *x)
|
foo (struct S *x)
|
{
|
{
|
if (x->a != C || x->b != D)
|
if (x->a != C || x->b != D)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
struct S s;
|
struct S s;
|
s.a = C;
|
s.a = C;
|
s.b = D;
|
s.b = D;
|
foo (&s);
|
foo (&s);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.