Debian Codegraph @

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

raw
1 /* Test BTF generation for functions.
2
3 We expect to see one BTF_KIND_FUNC_PROTO with 2 named arguments.
4 The parameter names should appear in the auxilliary string table. */
5
6 /* { dg-do compile } */
7 /* { dg-options "-O0 -gbtf -dA" } */
8
9 /* { dg-final { scan-assembler-times "\[\t \]0xd000002\[\t \]+\[^\n\]*btt_info" 1 } } */
10 /* { dg-final { scan-assembler-times "farg_name" 2 } } */
11 /* { dg-final { scan-assembler-times "farg_type" 2 } } */
12 /* { dg-final { scan-assembler-times "ascii \"alpha.0\"\[\t \]+\[^\n\]*btf_aux_string" 1 } } */
13 /* { dg-final { scan-assembler-times "ascii \"bravo.0\"\[\t \]+\[^\n\]*btf_aux_string" 1 } } */
14
15 int funfoo (int alpha, long bravo)
16 {
17 return 0;
18 }