Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr103184-2.c
blob: 499761fdbfd0d70ff36b2c7ab68e838352cb1111 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2" } */
#include
<stdatomic.h>
int
tbit0
(
_Atomic
int
*
a
,
int
n
)
{
#define
BIT
(
0x1
<<
n
)
return
atomic_fetch_or
(
a
,
BIT
)
&
BIT
;
#undef
BIT
}