aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-rc-pointer-rel.c
blob: ca0a5c4ac752dedf340315d69277ce11c3e6eda8 (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 *ctx;
  int32_t rel_x, rel_y;

  ret = bpf_rc_pointer_rel (ctx, rel_x, rel_y);
}

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