| 1 |
/* Test compilation of stubs with various qualifiers - const, restrict and |
| 2 |
volatile. |
| 3 |
|
| 4 |
CTF records for CVR qualifiers are no-name records. In this testcase, there |
| 5 |
is 1 const qualifier. 1 more no-name CTF record corresponds to the CTF |
| 6 |
pointer record. */ |
| 7 |
|
| 8 |
/* { dg-do compile } */ |
| 9 |
/* { dg-options "-O0 -gctf -dA" } */ |
| 10 |
|
| 11 |
/* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*ctt_name" 2 } } */ |
| 12 |
/* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 13 |
/* { dg-final { scan-assembler-times "\[\t \]0x32000000\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 14 |
|
| 15 |
typedef const struct howto_struct howto_type; |
| 16 |
|
| 17 |
typedef struct entry |
| 18 |
{ |
| 19 |
int addend; |
| 20 |
howto_type *howto; |
| 21 |
} how_ent; |
| 22 |
|
| 23 |
how_ent hent; |