| 1 |
/* The zero sized bitfield. |
| 2 |
|
| 3 |
In this testcase, two slices are expected. */ |
| 4 |
|
| 5 |
/* { dg-do compile } */ |
| 6 |
/* { dg-options "-O0 -gctf -dA" } */ |
| 7 |
|
| 8 |
/* { dg-final { scan-assembler-times "\[\t \]0x2\[\t \]+\[^\n\]*cts_type" 2 } } */ |
| 9 |
|
| 10 |
/* { dg-final { scan-assembler-times "\[\t \]0x5\[\t \]+\[^\n\]*cts_bits" 1 } } */ |
| 11 |
/* { dg-final { scan-assembler-times "\[\t \]0xa\[\t \]+\[^\n\]*cts_bits" 1 } } */ |
| 12 |
|
| 13 |
/* { dg-final { scan-assembler-times "ctm_name" 2 } } */ |
| 14 |
struct foo |
| 15 |
{ |
| 16 |
int a:5; |
| 17 |
unsigned:0; |
| 18 |
int b:10; |
| 19 |
} foome; |