aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-int-1.c
blob: 8c68b2e7edead2c39fcbfad6c9021f4977d0b6d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Tests for CTF integer base types.
   - Verify that there is a single record for the base types.  */

/* { dg-do compile )  */
/* { dg-options "-O0 -gctf -dA" } */
/* { dg-final { scan-assembler-times "ascii \"int.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
/* { dg-final { scan-assembler-times "ascii \"short int.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
/* { dg-final { scan-assembler-times "ascii \"long int.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */

int a;
int b = 33;

short int c = 44;
short int d = 45;

long int e = 90;
long int f;