blob: 40c541f0c752b7db9c5f3a9a7cef0c8b82841759 [file]
/* Basic test for kernel_helper attribute BTF information. */
/* { dg-do compile } */
/* { dg-options "-O0 -dA -gbtf -masm=normal" } */
extern int foo_helper(int) __attribute((kernel_helper(42)));
extern int foo_nohelper(int);
int bar (int arg)
{
return foo_helper (arg) + foo_nohelper (arg);
}
/* { dg-final { scan-assembler-times "BTF_KIND_FUNC 'foo_nohelper'" 1 } } */
/* { dg-final { scan-assembler-times "BTF_KIND_FUNC 'foo_helper'" 0 } } */