aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-csum-update.c
blob: 4f65033acb486f16df12898b96fd626976337fc0 (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 ()
{
  int64_t ret;
  void *skb;
  int csum;

  ret = bpf_csum_update (skb, csum);
}

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