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

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