aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-variables-1.c
blob: 8c3ab1050e0ca9fa2dcaf6b2ab44bac54bcb12e2 (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
/* CTF generation for global variables.

   In this testcase, 7 records in the variable info section are expected.  */

/* { dg-do compile )  */
/* { dg-options "-O0 -gctf -dA" } */

/* { dg-final { scan-assembler-times "ctv_name" 7 } } */

float var1;
double var2;
long double var3;

char ascii = 'a';

int a = 33;
int a1[2] = {22, 33};

struct d
{
  int d1;
  int d2;
};

struct d d_instance;