[clang] Define signed int overflow with -fms-compatibility (PR #198538)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 08:11:00 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 55600 tests passed
* 2572 tests skipped
* 4 tests failed
## Failed Tests
(click on a test name to see its output)
### UBSan-AddressSanitizer-x86_64
<details>
<summary>UBSan-AddressSanitizer-x86_64.TestCases/Integer/shift.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -fsanitize=address -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -DLSH_OVERFLOW -DOP='<<' -fsanitize=shift-base -fno-sanitize-recover=shift C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Integer\Output\shift.cpp.tmp1 && not C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Integer\Output\shift.cpp.tmp1 2>&1 | FileCheck C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp --check-prefix=CHECK-LSH_OVERFLOW
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -fsanitize=address -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -DLSH_OVERFLOW '-DOP=<<' -fsanitize=shift-base -fno-sanitize-recover=shift 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp' -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Integer\Output\shift.cpp.tmp1'
# note: command had no output on stdout or stderr
# executed command: not 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Integer\Output\shift.cpp.tmp1'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp' --check-prefix=CHECK-LSH_OVERFLOW
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: filecheck.exe C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp --check-prefix=CHECK-LSH_OVERFLOW
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>UBSan-AddressSanitizer-x86_64.TestCases/Misc/abs.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -fsanitize=address -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fsanitize=signed-integer-overflow -w C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp -O3 -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Misc\Output\abs.cpp.tmp
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -fsanitize=address -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fsanitize=signed-integer-overflow -w 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp' -O3 -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Misc\Output\abs.cpp.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Misc\Output\abs.cpp.tmp 2>&1 | FileCheck C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp --check-prefix=RECOVER
# executed command: 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\AddressSanitizer-x86_64\TestCases\Misc\Output\abs.cpp.tmp'
# note: command had no output on stdout or stderr
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp' --check-prefix=RECOVER
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: filecheck.exe C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp --check-prefix=RECOVER
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
### UBSan-Standalone-x86_64
<details>
<summary>UBSan-Standalone-x86_64.TestCases/Integer/shift.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -DLSH_OVERFLOW -DOP='<<' -fsanitize=shift-base -fno-sanitize-recover=shift C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\shift.cpp.tmp1 && not C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\shift.cpp.tmp1 2>&1 | FileCheck C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp --check-prefix=CHECK-LSH_OVERFLOW
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -DLSH_OVERFLOW '-DOP=<<' -fsanitize=shift-base -fno-sanitize-recover=shift 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp' -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\shift.cpp.tmp1'
# note: command had no output on stdout or stderr
# executed command: not 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\shift.cpp.tmp1'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp' --check-prefix=CHECK-LSH_OVERFLOW
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: filecheck.exe C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Integer\shift.cpp --check-prefix=CHECK-LSH_OVERFLOW
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>UBSan-Standalone-x86_64.TestCases/Misc/abs.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fsanitize=signed-integer-overflow -w C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp -O3 -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Misc\Output\abs.cpp.tmp
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang.exe -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fsanitize=signed-integer-overflow -w 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp' -O3 -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Misc\Output\abs.cpp.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Misc\Output\abs.cpp.tmp 2>&1 | FileCheck C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp --check-prefix=RECOVER
# executed command: 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Misc\Output\abs.cpp.tmp'
# note: command had no output on stdout or stderr
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp' --check-prefix=RECOVER
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: filecheck.exe C:\_work\llvm-project\llvm-project\compiler-rt\test\ubsan\TestCases\Misc\abs.cpp --check-prefix=RECOVER
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/198538
More information about the cfe-commits
mailing list