aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-map-update-elem.c
blob: 6cceafe62e3a4500ecdcf20b006dc884424e80c2 (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 <bpf-helpers.h>

char *map () { return 0; }

void
foo ()
{
  int ret;
  long long flags = 0;
  char *key = 0, *value = 0;

  ret = bpf_map_update_elem (map (), key, value, flags);
}

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