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