URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// Test whether attributes are accepted both immediately after
|
// Test whether attributes are accepted both immediately after
|
// struct/union keyword and after the closing brace.
|
// struct/union keyword and after the closing brace.
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
struct foo
|
struct foo
|
{
|
{
|
union __attribute__ ((packed))
|
union __attribute__ ((packed))
|
{
|
{
|
int a;
|
int a;
|
long b;
|
long b;
|
};
|
};
|
union __attribute__ ((packed)) __attribute__ ((unused))
|
union __attribute__ ((packed)) __attribute__ ((unused))
|
{
|
{
|
int c;
|
int c;
|
long d;
|
long d;
|
};
|
};
|
};
|
};
|
|
|
union __attribute__ ((packed)) bar
|
union __attribute__ ((packed)) bar
|
{
|
{
|
int c;
|
int c;
|
long d;
|
long d;
|
};
|
};
|
|
|
struct __attribute__ ((packed)) baz
|
struct __attribute__ ((packed)) baz
|
{
|
{
|
int e;
|
int e;
|
long f;
|
long f;
|
};
|
};
|
|
|
struct foo2
|
struct foo2
|
{
|
{
|
union
|
union
|
{
|
{
|
int a;
|
int a;
|
long b;
|
long b;
|
} __attribute__ ((packed));
|
} __attribute__ ((packed));
|
};
|
};
|
|
|
union bar2
|
union bar2
|
{
|
{
|
int c;
|
int c;
|
long d;
|
long d;
|
} __attribute__ ((packed));
|
} __attribute__ ((packed));
|
|
|
struct baz2
|
struct baz2
|
{
|
{
|
int e;
|
int e;
|
long f;
|
long f;
|
} __attribute__ ((packed));
|
} __attribute__ ((packed));
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.