| 1 |
/* Testing the correct usage of attribute counted_by: _BitInt */ |
| 2 |
/* { dg-do compile { target bitint } } */ |
| 3 |
/* { dg-options "-O2 -std=c23" } */ |
| 4 |
|
| 5 |
struct trailing_array { |
| 6 |
_BitInt(24) count; |
| 7 |
int array[] __attribute ((counted_by (count))); |
| 8 |
}; |