summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/use-after-scope-chars.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/use-after-scope-chars.cc')
-rw-r--r--test/asan/TestCases/use-after-scope-chars.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/asan/TestCases/use-after-scope-chars.cc b/test/asan/TestCases/use-after-scope-chars.cc
deleted file mode 100644
index 51fc5fa387474..0000000000000
--- a/test/asan/TestCases/use-after-scope-chars.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \
-// RUN: not %run %t 2>&1 | FileCheck %s
-// XFAIL: *
-
-// FIXME: This works only for arraysize <= 8.
-
-char *p = 0;
-
-int main() {
- {
- char x[1024] = {};
- p = x;
- }
- return *p; // BOOM
-}