| 1 |
/* Test BTF generation for struct type with a member which refers to an |
| 2 |
unsupported type. |
| 3 |
|
| 4 |
BTF does not support vector types (among other things). When |
| 5 |
generating BTF for a struct (or union) type. Members which refer to |
| 6 |
unsupported types should not be skipped, however. */ |
| 7 |
|
| 8 |
/* { dg-do compile } */ |
| 9 |
/* { dg-options "-O0 -gbtf -dA" } */ |
| 10 |
|
| 11 |
/* Expect a struct with 3 members - 'f' is present but is of data type void. */ |
| 12 |
/* { dg-final { scan-assembler-times "\[\t \]0x4000003\[\t \]+\[^\n\]*btt_info" 1 } } */ |
| 13 |
/* { dg-final { scan-assembler-times " MEMBER 'f' idx=1\[\\r\\n\]+\[^\\r\\n\]*0\[\t \]+\[^\n\]*btm_type: void" 1 } } */ |
| 14 |
|
| 15 |
struct with_float |
| 16 |
{ |
| 17 |
int a; |
| 18 |
float __attribute__((__vector_size__(16))) f; |
| 19 |
char c; |
| 20 |
} instance; |