aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/btf/btf-function-4.c
blob: fd3124488f56953c706a5f8dfa1ce8b77c65c6a7 (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 static 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=0" 1 } } */

static int funfoo (void)
{
  return 0;
}