From 2b40b7ef8446ba79a2c14e6b8d4d391920870bbc Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 7 Jan 2013 22:25:54 +0000 Subject: [ubsan] Check for appropriate types on compound assignment overflow diagnostics. llvm-svn: 171802 --- compiler-rt/lib/ubsan/lit_tests/Integer/uadd-overflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler-rt/lib/ubsan/lit_tests/Integer/uadd-overflow.cpp') diff --git a/compiler-rt/lib/ubsan/lit_tests/Integer/uadd-overflow.cpp b/compiler-rt/lib/ubsan/lit_tests/Integer/uadd-overflow.cpp index d7b43d0fd2e..0edb10092e2 100644 --- a/compiler-rt/lib/ubsan/lit_tests/Integer/uadd-overflow.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/Integer/uadd-overflow.cpp @@ -13,7 +13,7 @@ int main() { #ifdef ADD_I32 uint32_t k = 0x87654321; k += 0xedcba987; - // CHECK-ADD_I32: uadd-overflow.cpp:[[@LINE-1]]:5: runtime error: unsigned integer overflow: 2271560481 + 3989547399 cannot be represented in type 'uint32_t' (aka 'unsigned int') + // CHECK-ADD_I32: uadd-overflow.cpp:[[@LINE-1]]:5: runtime error: unsigned integer overflow: 2271560481 + 3989547399 cannot be represented in type 'unsigned int' #endif #ifdef ADD_I64 -- cgit v1.2.3