summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/btf/btf-float-1.c
blob: 6876df041581669ad73164dd49c20b99c2577db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Tests for BTF floating point type kinds. We expect a single record for each
   of the base types: float, double and long double.  */

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

/* { dg-final { scan-assembler-times "\[\t \]0x10000000\[\t \]+\[^\n\]*btt_info" 3 } } */

/* { dg-final { scan-assembler-times "ascii \"float.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
/* { dg-final { scan-assembler-times "ascii \"double.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
/* { dg-final { scan-assembler-times "ascii \"long double.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */

float a;
float b = 1.5f;

double c;
double d = -99.9;

long double e;
long double f = 1000.01;