[all-commits] [llvm/llvm-project] 4a8734: [libc++] [test] Add "robust_re_difference_type.com...

Quuxplusone via All-commits all-commits at lists.llvm.org
Wed Nov 17 21:14:07 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a8734deb7d54cf15f28b87cdb8a4f601852c10d
      https://github.com/llvm/llvm-project/commit/4a8734deb7d54cf15f28b87cdb8a4f601852c10d
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    A libcxx/test/std/algorithms/robust_against_adl.compile.pass.cpp
    R libcxx/test/std/algorithms/robust_against_adl.pass.cpp
    M libcxx/test/std/algorithms/robust_against_adl_on_new.pass.cpp
    A libcxx/test/std/algorithms/robust_re_difference_type.compile.pass.cpp
    M libcxx/test/support/test_macros.h

  Log Message:
  -----------
  [libc++] [test] Add "robust_re_difference_type.compile.pass.cpp" for all the algorithms.

Also, mark these tests as compile-only. They actually are safe to run — notice that
the code "runs" at constexpr-time in C++20, without error — because both of the
input ranges are entirely filled with nullptr, so no matter how you shuffle the
elements, they remain sorted and partitioned and heapified and everything.
But there's no real reason to run them at runtime, so let's just avoid the distraction.

Test cases that fail in trunk right now are commented out with `TODO FIXME`.

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




More information about the All-commits mailing list