Index: test/asan/TestCases/heap-overflow-large.cc =================================================================== --- test/asan/TestCases/heap-overflow-large.cc +++ test/asan/TestCases/heap-overflow-large.cc @@ -19,5 +19,5 @@ // CHECK: main // CHECK-NOT: CHECK failed delete[] x; - return res ? res : 1; + return (char)res ? (char)res : 1; }