diff options
Diffstat (limited to 'test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test')
-rw-r--r-- | test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test b/test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test index e62a01e9e..5d37704b8 100644 --- a/test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test +++ b/test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test @@ -1,5 +1,5 @@ RUN: rm -f %t-ImplicitUnsignedIntegerTruncationTest-Ubsan RUN: %cpp_compiler -fsanitize=implicit-unsigned-integer-truncation -fno-sanitize-recover=all %S/ImplicitUnsignedIntegerTruncationTest.cpp -o %t-ImplicitUnsignedIntegerTruncationTest-Ubsan RUN: not %run %t-ImplicitUnsignedIntegerTruncationTest-Ubsan 2>&1 | FileCheck %s -CHECK: ImplicitUnsignedIntegerTruncationTest.cpp:22:17: runtime error: implicit conversion from type 'unsigned int' of value 256 (32-bit, unsigned) to type 'uint8_t' (aka 'unsigned char') changed the value to 0 (8-bit, unsigned) +CHECK: ImplicitUnsignedIntegerTruncationTest.cpp:23:17: runtime error: implicit conversion from type 'unsigned int' of value 256 (32-bit, unsigned) to type 'uint8_t' (aka 'unsigned char') changed the value to 0 (8-bit, unsigned) CHECK: Test unit written to ./crash- |