summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-09-16 01:37:17 +0000
committerVitaly Buka <vitalybuka@google.com>2016-09-16 01:37:17 +0000
commit40d1241ee014920b5d9faf1748ed610dce8f4193 (patch)
tree2c3af1ee9fd0a7e279d72feb82d1d4d0e2e2977c /test
parent2fa8b5c24a175f74c844fc36764505174c1fb25a (diff)
[asan] Remove the test as the fix is going to be removed
Summary: I need to redu solution, existing is not good enough. PR28267 Reviewers: eugenis Subscribers: llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D24490 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@281687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/asan/TestCases/use-after-scope-goto.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/asan/TestCases/use-after-scope-goto.c b/test/asan/TestCases/use-after-scope-goto.c
deleted file mode 100644
index e69cc7180..000000000
--- a/test/asan/TestCases/use-after-scope-goto.c
+++ /dev/null
@@ -1,21 +0,0 @@
-// RUN: %clang_asan -O0 -fsanitize-address-use-after-scope %s -o %t && %run %t
-
-// Function jumps over variable initialization making lifetime analysis
-// ambiguous. Asan should ignore such variable and program must not fail.
-
-int *ptr;
-
-void f(int cond) {
- if (cond)
- goto label;
- int tmp = 1;
-
-label:
- ptr = &tmp;
- *ptr = 5;
-}
-
-int main() {
- f(1);
- return 0;
-}