summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-sysctl-get-name.c
blob: ca9c42ba6a8f77343cd62359b78a36499d94d4d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { 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;
  uint64_t flags;

  ret = bpf_sysctl_get_name (ctx, buf, buf_len, flags);
}

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