aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-probe-read.c
blob: 64261c56f92164a593a29b5ebe18794170cdd649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

#include <stdint.h>
#include <bpf-helpers.h>

void
foo ()
{
  int ret;
  void *src, *dst;
  uint32_t size;

  ret = bpf_probe_read (dst, size, src);
}

/* { dg-final { scan-assembler "call\t4" } } */