ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/bpf/helper-probe-read-str.c

19 lines
286 B
C

/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
#include <stdint.h>
#include <bpf-helpers.h>
void
foo ()
{
int ret;
int size;
void *dst;
const void *unsafe_ptr;
ret = bpf_probe_read_str (dst, size, unsafe_ptr);
}
/* { dg-final { scan-assembler "call\t45" } } */