repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
delayedfold
/
builtin1.C
blob
32f4435d152b29fac5945c4ecd2bed5862b5a5ab
1
// PR c++/68847
2
// { dg-do compile { target cas_int } }
3
4
class RegionLock {
5
template <unsigned long> void m_fn1();
6
int spinlock;
7
} acquire_zero;
8
int acquire_one;
9
template <unsigned long> void RegionLock::m_fn1() {
10
__atomic_compare_exchange(&spinlock, &acquire_zero, &acquire_one, false, 2, 2);
11
}