view gcc/testsuite/gcc.dg/pr61756.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* 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);
}