aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-skb-adjust-room.c
blob: 3bce73fa8526b01067b72fd4d1268f459c2f6c5a (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 *skb;
  int32_t len_diff;
  uint32_t mode;
  uint64_t flags;

  ret = bpf_skb_adjust_room (skb, len_diff, mode, flags);
}

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