Debian Codegraph @

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

raw
1 /* Test BTF generation for functions with varargs.
2
3 We expect one BTF_KIND_FUNC_PROTO with two arguments. The second argument
4 should have "farg_name" and "farg_type" both of 0, representing varargs. */
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 "\[\t \]0\[\t \]+\[^\n\]*farg_name" 1 } } */
13 /* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*farg_type" 1 } } */
14
15 int fmt (const char * format, ...)
16 {
17 return 0;
18 }