summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-probe-write-user.c
blob: 127ae61c8a4e21ee3845eac70a74d541943cf937 (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 *dst, *src;
  uint32_t len;

  ret = bpf_probe_write_user (dst, src, len);
}

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