summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/skb-ancestor-cgroup-id.c
blob: 13ccf36b4d60bf94c4cfb97ba524d9e6a104a0dd (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 *skb;
  int ancestor_level;

  ret = bpf_skb_ancestor_cgroup_id (skb, ancestor_level);
}

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