Debian Codegraph @

gcc/testsuite/gcc.dg/debug/btf/btf-float-1.c

raw
1 /* Tests for BTF floating point type kinds. We expect a single record for each
2 of the base types: float, double and long double. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O0 -gbtf -dA" } */
6
7 /* { dg-final { scan-assembler-times "\[\t \]0x10000000\[\t \]+\[^\n\]*btt_info" 3 } } */
8
9 /* { dg-final { scan-assembler-times "ascii \"float.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
10 /* { dg-final { scan-assembler-times "ascii \"double.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
11 /* { dg-final { scan-assembler-times "ascii \"long double.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
12
13 float a;
14 float b = 1.5f;
15
16 double c;
17 double d = -99.9;
18
19 long double e;
20 long double f = 1000.01;