summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-getsockopt.c
blob: 3f71b6bfa6c07bcb36611197cfdff9564cb33cee (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 <bpf-helpers.h>

void
foo ()
{
  int ret;
  void *bpf_socket;
  int level, optname, optlen;
  char *optval;

  ret = bpf_getsockopt (bpf_socket, level,
			optname, optval, optlen);
}

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