libbacktrace: update xcoff.c for base_address changes
[official-gcc.git] / gcc / testsuite / g++.dg / tm / pr80059-2.C
blob10edb3a6de59d3ede7eb9219848024083ada4e1a
1 // PR c++/80059
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fgnu-tm" }
5 template<typename T> int foo(T b)
7   return __transaction_atomic noexcept(b) (0); // { dg-error "is not a constant expression" }
10 void bar()
12   foo(true);