<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/115205>115205</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc] -Winteger-overflow in libc/test/src/math/smoke/LdExpTest.h
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
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};
| ~~~~~~~~^~~~
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVU9vvDYQ_TTDZbQIxniBA4dl90cVKUkvkbo3ZMCwbryAbJNsLv3sldlNUjWHqq2qXmIhyw_N3zcjPWGtGkYpC-Al8EMgFneaTDGq9rmTVix6VNLYoJm6t6JZlO7UOGA_GVQs2wLbQXSAaAfb6PZdIS8p40AVi3PgByzfHffHI07Nr7J1qFXTAlVOWgdUWePBWbiTB-fpWQJV-wcRhuGKQt3Jy6xrbx7W9TIqV9dhXa8l1XXYKQNU_dGonedwupZzN2KvtEQ1tnrpZIe9mc4IVImxM5PqIu-qX86b2Uy-Ng__uro_JQO2yz_5-Jex77sfl_nJRz4B23EGbLf1F74KM6px8M_pRZpeT6-oRpSX2Uhr1TQCK9FIu2iHyuKGgNI4SYHSJGNA6TbJ8FW5E7q3WSJQqqdxAEoReLn5RY1ODtJs3kMDP1z7QUTOENI9-uN91quWl7kWxog34GXiJw3sgJCW9z8__lQ_3D0C7fHu8ck_cYPx_QfeHRGovP25Wu-OkB6AlR8ZEdeMv90O8B_-_q_4TfJ_wO9XetNver_X93t9_19639Uo6ArW5SwXgSzilEU5sTzPg1NBLO5FHrdNx9MsE5K2fZ9mvaCW8kikLFAFRZTEcbSlKGZxFmaUNl3Pt1HPWJeICJJInoXSoZ9eOJkhUNYusohjThEPtGiktquoEl0nSl5eTbFOu1kGC0mklXX2M4JTTq9CvDrwA37l3E_z7y1IsBhdnJybrVcnqoCqQbnT0oTtdL5t39clXJuxQNWtn5eCfg8AAP__Kcp5vg">