[libcxx-commits] [libcxx] [libc++] Move std::abs into __math/abs.h (PR #139586)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 19 01:36:21 PDT 2025
================
@@ -13,10 +13,10 @@ void f() {
(void)std::abs(ui); // expected-error {{call to 'abs' is ambiguous}}
unsigned char uc = -5;
- (void)std::abs(uc); // expected-warning {{taking the absolute value of unsigned type 'unsigned char' has no effect}}
+ (void)std::abs(uc); // expected-warning 0-1 {{taking the absolute value of unsigned type 'unsigned char' has no effect}}
----------------
philnik777 wrote:
This is #144854.
https://github.com/llvm/llvm-project/pull/139586
More information about the libcxx-commits
mailing list