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

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

void
foo ()
{
  int ret;
  void *buf;
  unsigned long res;
  uint64_t flags;
  size_t buf_len;

  ret = bpf_strtoul (buf, buf_len, flags, &res);
}

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