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

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

void
foo ()
{
  int ret;
  void *ctx, *addr;
  int addr_len;

  ret = bpf_bind (ctx, addr, addr_len);
}

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