aboutsummaryrefslogtreecommitdiff
path: root/test/lsan/TestCases/stale_stack_leak.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsan/TestCases/stale_stack_leak.cc')
-rw-r--r--test/lsan/TestCases/stale_stack_leak.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lsan/TestCases/stale_stack_leak.cc b/test/lsan/TestCases/stale_stack_leak.cc
index 770096b08888..8f7ab9c1c0fa 100644
--- a/test/lsan/TestCases/stale_stack_leak.cc
+++ b/test/lsan/TestCases/stale_stack_leak.cc
@@ -1,8 +1,11 @@
// Test that out-of-scope local variables are ignored by LSan.
-// RUN: LSAN_BASE="report_objects=1:use_registers=0:use_stacks=1"
+// RUN: LSAN_BASE="detect_leaks=1:report_objects=1:use_registers=0:use_stacks=1"
// RUN: %clangxx_lsan %s -o %t
// RUN: LSAN_OPTIONS=$LSAN_BASE not %run %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE":exitcode=0" %run %t 2>&1 | FileCheck --check-prefix=CHECK-sanity %s
+//
+// x86 passes parameters through stack that may lead to false negatives
+// UNSUPPORTED: x86
#include <stdio.h>
#include <stdlib.h>