<div dir="ltr">Hi,<div><br></div><div>I have multiple UBSAN tests failing the same way:</div><div><br></div><div><div> ******************** TEST 'UndefinedBehaviorSanitizer-AddressSanitizer :: Integer/uadd-overflow.cpp' FAILED ********************</div>

<div> Script:</div><div> --</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang -fsanitize=address --driver-mode=g++ -DADD_I32 -fsanitize=unsigned-integer-overflow /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp -o /home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp && /home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp 2>&1 | FileCheck /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp --check-prefix=CHECK-ADD_I32</div>

<div> /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang -fsanitize=address --driver-mode=g++ -DADD_I64 -fsanitize=unsigned-integer-overflow /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp -o /home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp && /home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp 2>&1 | FileCheck /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp --check-prefix=CHECK-ADD_I64</div>

<div> /home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang -fsanitize=address --driver-mode=g++ -DADD_I128 -fsanitize=unsigned-integer-overflow /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp -o /home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp && /home/abuild/rpmbuild/BUILD/llvm/stage2/projects/compiler-rt/lib/ubsan/lit_tests/AsanConfig/Integer/Output/uadd-overflow.cpp.tmp 2>&1 | FileCheck /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp --check-prefix=CHECK-ADD_I128</div>

<div> --</div><div> Exit Code: 1</div><div> </div><div> Command Output (stderr):</div><div> --</div><div> /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp:21:20: error: expected string not found in input</div>

<div>  // CHECK-ADD_I64: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long'</div><div>                    ^</div><div> <stdin>:1:1: note: scanning from here</div><div> /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp:20:44: runtime error: unsigned integer overflow: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long long'</div>

<div> ^</div><div> <stdin>:1:160: note: possible intended match here</div><div> /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp:20:44: runtime error: unsigned integer overflow: 10000000000000000000 + 9000000000000000000 cannot be represented in type 'unsigned long long'</div>

<div> </div></div><div>So the test expect to see "unsigned long" but output has "unsigned long long".</div><div><br></div><div><br></div></div>