[all-commits] [llvm/llvm-project] d7eb79: [libc++] [test] Detect an improperly noexcept'ed _...

Quuxplusone via All-commits all-commits at lists.llvm.org
Mon Apr 12 09:28:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7eb797ea55c76c7a71886343e216be27d5757be
      https://github.com/llvm/llvm-project/commit/d7eb797ea55c76c7a71886343e216be27d5757be
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp

  Log Message:
  -----------
  [libc++] [test] Detect an improperly noexcept'ed __decay_copy.

`__decay_copy` is used by `std::thread`'s constructor to copy its arguments
into the new thread. If `__decay_copy` claims to be noexcept, but then
copying the argument does actually throw, we'd call std::terminate instead
of passing this test. (And I've verified that adding an unconditional `noexcept`
to `__decay_copy` does indeed fail this test.)

Differential Revision: https://reviews.llvm.org/D100277




More information about the All-commits mailing list