| 1 |
/* CTF does not have representation for _Atomic qualifier. This qualifier is |
| 2 |
skipped in the CTF generation phase in the compiler. |
| 3 |
|
| 4 |
In this testcase, CTF records for the _Atomic qualifier are not added as |
| 5 |
CTF has no representation for it. CTF records for the underlying type are, |
| 6 |
however, added. So, CTF records for typedef, const and the underlying |
| 7 |
struct are expected. */ |
| 8 |
|
| 9 |
/* { dg-do compile } */ |
| 10 |
/* { dg-options "-O0 -gctf -dA" } */ |
| 11 |
|
| 12 |
/* { dg-final { scan-assembler-times "\[\t \]0x2a000000\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 13 |
/* { dg-final { scan-assembler-times "\[\t \]0x32000000\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 14 |
/* { dg-final { scan-assembler-times "\[\t \]0x1a000003\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 15 |
/* { dg-final { scan-assembler-times "ctm_name" 3 } } */ |
| 16 |
|
| 17 |
/* { dg-final { scan-assembler-times "ascii \"comp_type.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */ |
| 18 |
/* { dg-final { scan-assembler-times "ascii \"comp_type_t.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */ |
| 19 |
/* { dg-final { scan-assembler-times "ascii \"c1.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */ |
| 20 |
typedef struct comp_type |
| 21 |
{ |
| 22 |
int a; |
| 23 |
float b; |
| 24 |
char c; |
| 25 |
} comp_type_t; |
| 26 |
|
| 27 |
_Atomic const comp_type_t c1; |