gcc/testsuite/g++.dg/delayedfold/builtin1.C
raw| 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 | } |