summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/helper-spin-unlock.c
blob: 400695f7aaefd06b00451c8d1f4e509591c501b5 (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 ()
{
  void *lock;

  bpf_spin_unlock (lock);
}

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