aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/btf/btf-function-5.c
blob: 12ee97fb5e35efe204b8665e76a4cc61378b9359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test BTF linkage for functions.

   We expect to see one BTF_KIND_FUNC type with global linkage encoded in the
   BTF type's vlen field.  */

/* { dg-do compile } */
/* { dg-options "-O0 -gbtf -dA" } */

/* { dg-final { scan-assembler-times "btt_info: kind=12, kflag=0, linkage=1" 1 } } */

int funfoo (void)
{
  return 0;
}