aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr61756.c
blob: 4ca90448f190181d988f11c5c79e5332bbd73334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR target/61756  */

/* { dg-do compile } */
/* { dg-options "-O2" } */

#include <stdatomic.h>

static volatile atomic_flag guard = ATOMIC_FLAG_INIT;

void
try_atomic_flag_test_and_set (void)
{
  atomic_flag_test_and_set (&guard);
}