| 1 |
/* { dg-do assemble } */ |
| 2 |
/* { dg-options "-Os" } */ |
| 3 |
/* { dg-final { object-size text <= 8 } } */ |
| 4 |
|
| 5 |
struct S { |
| 6 |
unsigned int a : 5; |
| 7 |
unsigned int b : 1; |
| 8 |
unsigned int c : 24; |
| 9 |
unsigned int d : 2; |
| 10 |
}; |
| 11 |
|
| 12 |
unsigned int test(struct S s) |
| 13 |
{ |
| 14 |
return s.d; |
| 15 |
} |