aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-sysctl-get-new-value.c
blob: d22b214d67b1df960aabb07c9159a1d1f148a7e7 (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_get_new_value (ctx, buf, buf_len);
}

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