summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-skb-get-tunnel-key.c
blob: aad847256ecd6dd79db77c72f072810b1c81f975 (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, *key;
  uint32_t size;
  uint64_t flags;

  ret = bpf_skb_get_tunnel_key (skb, key, size, flags);
}

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