repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr61756.c
blob
4ca90448f190181d988f11c5c79e5332bbd73334
1
/* PR target/61756 */
2
3
/* { dg-do compile } */
4
/* { dg-options "-O2" } */
5
6
#include <stdatomic.h>
7
8
static
volatile
atomic_flag guard
=
ATOMIC_FLAG_INIT
;
9
10
void
11
try_atomic_flag_test_and_set
(
void
)
12
{
13
atomic_flag_test_and_set
(&
guard
);
14
}