blob: e1fccec2d032366ae29a27aab5347c67f77fed29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* CTF generation for pointer types.
In this testcase, two CTF pointer type records are expected
- int *
- struct foo_struct *
*/
/* { dg-do compile ) */
/* { dg-options "-O0 -gctf -dA" } */
/* { dg-final { scan-assembler-times "ascii \"foo_struct.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
/* { dg-final { scan-assembler-times "ascii \"int.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*ctt_info" 2 } } */
int b = 44;
int * a = &b;
struct foo_struct
{
int bar_mem_1;
int bar_mem_2;
float d;
struct foo_struct *next;
};
struct foo_struct * node;
|