aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-get-cgroup-classid.c
blob: 5d85a89c632d60acba23ca696aaf18ebbf01b258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

#include <stdint.h>
#include <bpf-helpers.h>

void
foo ()
{
  uint32_t ret;
  void *skb;

  ret = bpf_get_cgroup_classid (skb);
}

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