From 7849967eccebe7b5bb1cbad338dc83e7520e37b2 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 11 Apr 2023 15:32:22 -0700 Subject: [PATCH] [lsan] Regression test for 7d328668691a --- compiler-rt/test/lsan/TestCases/lsan_annotations.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp b/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp index 044f967..ae27e32 100644 --- a/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp +++ b/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp @@ -5,12 +5,15 @@ #include #include -int *x, *y; +int *x, *y, *z; int main() { x = new int; __lsan_ignore_object(x); + z = new int[1000000]; // Large enough for the secondary allocator. + __lsan_ignore_object(z); + { __lsan::ScopedDisabler disabler; y = new int; -- 2.7.4