summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-bugfix-for-ufcs-noexcept.cpp2
blob: 1bf7fa2ebb806e6d12ad798042ebb0b6ce257e66 (plain)
1
2
3
4
5
6
t: type = {
  swap: (virtual inout this, that) = { } // Non-`virtual` blocked on #508, idiomatic form on #507.
}
main: () = {
  static_assert(noexcept(t().swap(t()))); // Fails on Clang 12 (lambda in unevaluated context) and GCC 10 (static assertion failed)
}