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

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

void
foo ()
{
  uint32_t ret;

  ret = bpf_get_prandom_u32 ();
}

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