diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-07-22 12:25:51 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-07-22 12:25:51 +0000 |
commit | 042ad2632e7c4a5776bbdb5be3231a8eeb56407c (patch) | |
tree | 330e1e0ee275708c347e78a3c5b4c8507ad158d5 /test/asan/TestCases/longjmp.cc | |
parent | c4d7da402ec668679ff2f6aa35faa3e983cf39e3 (diff) |
[ASan] Simplify exception/longjmp tests even further
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/longjmp.cc')
-rw-r--r-- | test/asan/TestCases/longjmp.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/asan/TestCases/longjmp.cc b/test/asan/TestCases/longjmp.cc index 6a7ba72c8..547233068 100644 --- a/test/asan/TestCases/longjmp.cc +++ b/test/asan/TestCases/longjmp.cc @@ -2,14 +2,12 @@ #include <assert.h> #include <setjmp.h> -#include <stdlib.h> #include <stdio.h> -#include <string.h> #include <sanitizer/asan_interface.h> static jmp_buf buf; -void TestLongJmp() { +int main() { char x[32]; fprintf(stderr, "\nTestLongJmp\n"); fprintf(stderr, "Before: %p poisoned: %d\n", &x, @@ -23,7 +21,3 @@ void TestLongJmp() { // https://code.google.com/p/address-sanitizer/issues/detail?id=258 assert(!__asan_address_is_poisoned(x + 32)); } - -int main(int argc, char **argv) { - TestLongJmp(); -} |