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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr103184-2.c
blob
499761fdbfd0d70ff36b2c7ab68e838352cb1111
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
#include <stdatomic.h>
5
6
int
7
tbit0
(
_Atomic
int
*
a
,
int
n
)
8
{
9
#define BIT (0x1 << n)
10
return
atomic_fetch_or
(
a
,
BIT
) &
BIT
;
11
#undef BIT
12
}