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

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

void
foo ()
{
  int ret;
  void *ctx, *buf;
  size_t buf_len;

  ret = bpf_sysctl_set_new_value (ctx, buf, buf_len);
}

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