[compiler-rt] r200553 - [ASan] Add a failing test that demonstrates that ASan currently breaks dead code stripping on Linux.
Alexander Potapenko
glider at google.com
Fri Jan 31 06:58:54 PST 2014
Author: glider
Date: Fri Jan 31 08:58:54 2014
New Revision: 200553
URL: http://llvm.org/viewvc/llvm-project?rev=200553&view=rev
Log:
[ASan] Add a failing test that demonstrates that ASan currently breaks dead code stripping on Linux.
See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info.
Added:
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc (with props)
Added: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc?rev=200553&view=auto
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc (added)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc Fri Jan 31 08:58:54 2014
@@ -0,0 +1,13 @@
+// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -ffunction-sections -mllvm -asan-globals=0
+// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -ffunction-sections -mllvm -asan-globals=1
+
+// https://code.google.com/p/address-sanitizer/issues/detail?id=260
+// XFAIL: *
+
+int undefined();
+
+int (*unused)() = undefined;
+
+int main() {
+ return 0;
+}
Propchange: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc
------------------------------------------------------------------------------
svn:eol-style = LF
More information about the llvm-commits
mailing list