summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/deep_tail_call.cc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-08-05 16:48:12 +0000
committerNico Weber <nicolasweber@gmx.de>2019-08-05 16:48:12 +0000
commit2f91f4f955190c500ab3a1ec4b92ad3f3af72724 (patch)
tree14f3bb241fe04d56481582cad0dcb00f3dc1a01e /test/asan/TestCases/deep_tail_call.cc
parent9b46f1e9a77b1faa2e9869b9b886f05ac5d39411 (diff)
downloadcompiler-rt-2f91f4f955190c500ab3a1ec4b92ad3f3af72724.tar.gz
compiler-rt: Rename cc files below test/asan to cpp
See r367803 and similar other changes. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@367887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/deep_tail_call.cc')
-rw-r--r--test/asan/TestCases/deep_tail_call.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/asan/TestCases/deep_tail_call.cc b/test/asan/TestCases/deep_tail_call.cc
deleted file mode 100644
index 628ef06db..000000000
--- a/test/asan/TestCases/deep_tail_call.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
-
-// CHECK: AddressSanitizer: global-buffer-overflow
-int global[10];
-// CHECK: {{#0.*call4}}
-void __attribute__((noinline)) call4(int i) { global[i+10]++; }
-// CHECK: {{#1.*call3}}
-void __attribute__((noinline)) call3(int i) { call4(i); }
-// CHECK: {{#2.*call2}}
-void __attribute__((noinline)) call2(int i) { call3(i); }
-// CHECK: {{#3.*call1}}
-void __attribute__((noinline)) call1(int i) { call2(i); }
-// CHECK: {{#4.*main}}
-int main(int argc, char **argv) {
- call1(argc);
- return global[0];
-}