[libcxx-commits] [PATCH] D71908: [libcxx] [test] Include missing <limits> header.

Andrey Maksimov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 26 09:10:24 PST 2019


amakc11 created this revision.
Herald added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, ldionne, christof.
Herald added a project: libc++.

The C++ standard requires the class template `numeric_limits` to be located in the `<limits>` header. Some tests use this class template, but do not include this header directly. As a result, these tests don't compile against some compatible libraries. This patch fixes the problem.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71908

Files:
  libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
  libcxx/test/std/iterators/iterator.container/ssize.pass.cpp
  libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp
  libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp
  libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp
  libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp
  libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp
  libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp
  libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp
  libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
  libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/max.pass.cpp
  libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/max.pass.cpp
  libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/max.pass.cpp
  libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/max.pass.cpp
  libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/ctor_int_int.pass.cpp
  libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/generate_canonical.pass.cpp
  libcxx/test/std/utilities/charconv/charconv.from.chars/integral.pass.cpp
  libcxx/test/std/utilities/charconv/charconv.to.chars/integral.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71908.235352.patch
Type: text/x-patch
Size: 8141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191226/476dcbd3/attachment.bin>


More information about the libcxx-commits mailing list