libstdc++-v3/testsuite/29_atomics/atomic/89624.cc
raw| 1 | // { dg-options "-fshort-enums" } |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | // Bug 89624 HLE bits don't work with -fshort-enums or -fstrict-enums |
| 5 | |
| 6 | #include <atomic> |
| 7 | |
| 8 | static_assert((std::memory_order_acquire | std::__memory_order_hle_acquire) |
| 9 | != std::memory_order_acquire, "HLE acquire sets a bit"); |