[compiler-rt] 3712dd7 - [test][lsan] Reset pointer to leak memory

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 15:37:40 PDT 2023


Author: Vitaly Buka
Date: 2023-04-11T15:37:35-07:00
New Revision: 3712dd73a1d50b76624ee6a520be2b1ca94c02ee

URL: https://github.com/llvm/llvm-project/commit/3712dd73a1d50b76624ee6a520be2b1ca94c02ee
DIFF: https://github.com/llvm/llvm-project/commit/3712dd73a1d50b76624ee6a520be2b1ca94c02ee.diff

LOG: [test][lsan] Reset pointer to leak memory

Added: 
    

Modified: 
    compiler-rt/test/lsan/TestCases/lsan_annotations.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp b/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp
index ae27e3202e0f..40d7bb06fd3a 100644
--- a/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp
+++ b/compiler-rt/test/lsan/TestCases/lsan_annotations.cpp
@@ -19,6 +19,6 @@ int main() {
     y = new int;
   }
 
-  x = y = nullptr;
+  x = y = z = nullptr;
   return 0;
 }


        


More information about the llvm-commits mailing list