diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-02-14 14:06:10 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-02-14 14:06:10 +0000 |
| commit | 9f20d6703479a952465f7db0c2fbd70904c030c2 (patch) | |
| tree | 165b5b998b1e69a1186b403115919f3b9f3fc1fa /compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc | |
| parent | 8434e60f7e2d8e5da48d94f612cf980a5d63bcec (diff) | |
| download | bcm5719-llvm-9f20d6703479a952465f7db0c2fbd70904c030c2.tar.gz bcm5719-llvm-9f20d6703479a952465f7db0c2fbd70904c030c2.zip | |
Move ASan lit-tests under test/asan
llvm-svn: 201413
Diffstat (limited to 'compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc')
| -rw-r--r-- | compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc deleted file mode 100644 index adf1c0784f7..00000000000 --- a/compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s -// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s -// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s -// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s - -#include <string.h> -int main(int argc, char **argv) { - char x[10]; - memset(x, 0, 10); - int res = x[argc * 10]; // BOOOM - // CHECK: {{READ of size 1 at 0x.* thread T0}} - // CHECK: {{ #0 0x.* in main .*stack-overflow.cc:}}[[@LINE-2]] - // CHECK: {{Address 0x.* is located in stack of thread T0 at offset}} - // CHECK-NEXT: in{{.*}}main{{.*}}stack-overflow.cc - return res; -} |

