Issue 115205
Summary [libc] -Winteger-overflow in libc/test/src/math/smoke/LdExpTest.h
Labels libc
Assignees
Reporter nickdesaulniers
    building for i386:
```
[285/319] Building CXX object libc/test/src/math/smoke/CMa...smoke.ldexpl_test.__unit__.__build__.dir/ldexpl_test.cpp.o
In file included from /android0/llvm-project/libc/test/src/math/smoke/ldexpl_test.cpp:9:
/android0/llvm-project/libc/test/src/math/smoke/LdExpTest.h:53:63: warning: overflow in _expression_; result is -2'147'483'648 with type 'long' [-Winteger-overflow]
   53 |     long long_exp_array[4] = {LONG_MIN, INT_MIN - 1L, INT_MAX + 1L, LONG_MAX};
      | ~~~~~~~~^~~~
/android0/llvm-project/libc/test/src/math/smoke/LdExpTest.h:53:49: warning: overflow in _expression_; result is 2'147'483'647 with type 'long' [-Winteger-overflow]
   53 |     long long_exp_array[4] = {LONG_MIN, INT_MIN - 1L, INT_MAX + 1L, LONG_MAX};
      | ~~~~~~~~^~~~
/android0/llvm-project/libc/test/src/math/smoke/LdExpTest.h:53:63: warning: overflow in _expression_; result is -2'147'483'648 with type 'long' [-Winteger-overflow]
   53 |     long long_exp_array[4] = {LONG_MIN, INT_MIN - 1L, INT_MAX + 1L, LONG_MAX};
      | ~~~~~~~~^~~~
/android0/llvm-project/libc/test/src/math/smoke/LdExpTest.h:53:49: warning: overflow in _expression_; result is 2'147'483'647 with type 'long' [-Winteger-overflow]
   53 |     long long_exp_array[4] = {LONG_MIN, INT_MIN - 1L, INT_MAX + 1L, LONG_MAX};
      | ~~~~~~~~^~~~
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to