1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99" } */
3
4 #include <stdint.h>
5 #include <bpf-helpers.h>
6
7 void
8 foo ()
9 {
10 int ret;
11 int size;
12 void *dst;
13 const void *unsafe_ptr;
14
15 ret = bpf_probe_read_str (dst, size, unsafe_ptr);
16 }
17
18 /* { dg-final { scan-assembler "call\t45" } } */