aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-msg-push-data.c
blob: 40b936162fce481a82d12068866ced70c766b529 (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 <bpf-helpers.h>

void
foo ()
{
  int ret;
  void *skb;
  uint32_t start, len;
  uint64_t flags;

  ret = bpf_msg_push_data (skb, start, len, flags);
}

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