| 1 |
/* Type de-duplication of CTF_K_TYPEDEF records. |
| 2 |
|
| 3 |
In this testcase, a single CTF record for typedef is expected. */ |
| 4 |
|
| 5 |
/* { dg-do compile } */ |
| 6 |
/* { dg-options "-O0 -gctf -dA" } */ |
| 7 |
|
| 8 |
/* { dg-final { scan-assembler-times "0x2a000000\[\t \]+\[^\n\]*ctt_info" 1 } } */ |
| 9 |
/* { dg-final { scan-assembler-times "ascii \"foo_type.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */ |
| 10 |
/* { dg-final { scan-assembler-times "ascii \"foo.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */ |
| 11 |
|
| 12 |
typedef struct foo foo_type; |
| 13 |
|
| 14 |
struct bar |
| 15 |
{ |
| 16 |
struct foo * f1; |
| 17 |
foo_type * f2; |
| 18 |
}; |
| 19 |
|
| 20 |
struct testme { |
| 21 |
struct bar * b1; |
| 22 |
}; |
| 23 |
|
| 24 |
struct testme * t1; |