aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-msg-apply-bytes.c
blob: e72035cff7cd7118abfff0bb328a064b6b8d2bc5 (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 *msg;
  uint32_t bytes;

  ret = bpf_msg_apply_bytes (msg, bytes);
}

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