diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-21 21:37:26 +0000 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-21 21:37:26 +0000 |
commit | ba40b0566ff0e835bc8234a4651e8cbf76181c3e (patch) | |
tree | e06d8a46d0d11568b8e772d15a6d60fd220e9e2b /libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm | |
parent | 9dc54e25f007bf5309894337c8682a678deb7033 (diff) | |
download | bcm5719-llvm-ba40b0566ff0e835bc8234a4651e8cbf76181c3e.tar.gz bcm5719-llvm-ba40b0566ff0e835bc8234a4651e8cbf76181c3e.zip |
Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065
llvm-svn: 318804
Diffstat (limited to 'libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm')
-rw-r--r-- | libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/lcm.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/lcm.pass.cpp b/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/lcm.pass.cpp index 1ca454330a5..d96ca3225aa 100644 --- a/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/lcm.pass.cpp +++ b/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/lcm.pass.cpp @@ -19,6 +19,7 @@ #include <cstdint> #include <cstdlib> #include <type_traits> +#include "test_macros.h" constexpr struct { int x; @@ -137,7 +138,7 @@ int main() // LWG#2837 { auto res1 = std::lcm(static_cast<std::int64_t>(1234), INT32_MIN); - (void)std::lcm(INT_MIN, 2UL); // this used to trigger UBSAN + TEST_IGNORE_NODISCARD std::lcm(INT_MIN, 2UL); // this used to trigger UBSAN static_assert(std::is_same_v<decltype(res1), std::int64_t>, ""); assert(res1 == 1324997410816LL); } |