Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
[ASan] Add a failing test that demonstrates that ASan currently break…
Browse files Browse the repository at this point in the history
…s dead code stripping on Linux.

See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200553 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ramosian-glider committed Jan 31, 2014
1 parent 8e28329 commit b30cd13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/asan/lit_tests/TestCases/Linux/globals-gc-sections.cc
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit b30cd13

Please sign in to comment.