| 1 |
/* Test compilation of struct type. |
| 2 |
|
| 3 |
In this testcase, two CTF_K_STRUCT records are expected |
| 4 |
struct a : ctt_info = 0x1a000004 (4 field members) |
| 5 |
struct b : ctt_into = 0x1a000002 (2 field members) |
| 6 |
*/ |
| 7 |
|
| 8 |
/* { dg-do compile } */ |
| 9 |
/* { dg-options "-O0 -gctf -dA" } */ |
| 10 |
|
| 11 |
/* { dg-final { scan-assembler-times "\[\t \]0x1a000004\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 12 |
/* { dg-final { scan-assembler-times "\[\t \]0x1a000002\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 13 |
/* { dg-final { scan-assembler-times "ctm_name" 6 } } */ |
| 14 |
|
| 15 |
struct a |
| 16 |
{ |
| 17 |
int d1; |
| 18 |
int d2; |
| 19 |
float c; |
| 20 |
struct b |
| 21 |
{ |
| 22 |
int time; |
| 23 |
int wall; |
| 24 |
} b1; |
| 25 |
} my_a; |