summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
-}