ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/bpf/helper-map-peek-elem.c

18 lines
253 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
#include <bpf-helpers.h>
char *map () { return 0; }
void
foo ()
{
int ret;
char *value = 0;
ret = bpf_map_peek_elem (map (), value);
}
/* { dg-final { scan-assembler "call\t89" } } */