(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
tm/
pr58635-2.C
// { dg-do compile { target c++11 } }
// { dg-options "-fgnu-tm" }

int
foo (void)
{
  return __transaction_atomic noexcept(false) (x); // { dg-error "was not declared in this scope" }
}