From f36d34a4d44a6ba8c8e195720b8c9b8463ba7a3e Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Fri, 8 Sep 2017 21:09:43 +0000 Subject: [PATCH] Revert "Prevent DCE on __lsan_is_turned_off and re-enable test case" This doesn't fix the failing test. Leave in the comment and the attribute, since the used attribute is still required. This partially reverts commit r312824 llvm-svn: 312827 --- compiler-rt/test/lsan/TestCases/link_turned_off.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/test/lsan/TestCases/link_turned_off.cc b/compiler-rt/test/lsan/TestCases/link_turned_off.cc index 245fd017b6ec..7e1b33e7a1c4 100644 --- a/compiler-rt/test/lsan/TestCases/link_turned_off.cc +++ b/compiler-rt/test/lsan/TestCases/link_turned_off.cc @@ -3,6 +3,8 @@ // RUN: %clangxx_lsan %s -o %t // RUN: %env_lsan_opts=$LSAN_BASE %run %t // RUN: %env_lsan_opts=$LSAN_BASE not %run %t foo 2>&1 | FileCheck %s +// +// UNSUPPORTED: darwin #include