From 40d1241ee014920b5d9faf1748ed610dce8f4193 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 16 Sep 2016 01:37:17 +0000 Subject: [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 --- test/asan/TestCases/use-after-scope-goto.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 test/asan/TestCases/use-after-scope-goto.c (limited to 'test') 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; -} -- cgit v1.2.3