]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/debug/btf/btf-variables-2.c
1 /* BTF generation for variables with removed type.
3 BTF does not support floating point types, so no representation for the type
4 'float' will be emitted. In this test, we check to also ensure that the
5 variable 'bar' is not emitted, as it references a type that is not supported
8 /* { dg-do compile } */
9 /* { dg-options "-O0 -gbtf -dA" } */
11 /* We expect only 3 variables. */
12 /* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*btv_info" 3 } } */
14 /* { dg-final { scan-assembler-times "ascii \"foo.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
15 /* { dg-final { scan-assembler-times "ascii \"baz.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
16 /* { dg-final { scan-assembler-times "ascii \"myst.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
19 float __attribute__((__vector_size__(16))) bar
;