diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-08-05 16:48:12 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-08-05 16:48:12 +0000 |
| commit | 673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582 (patch) | |
| tree | 93e9f9c3508af096ba717ef85186950135b4c225 /compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc | |
| parent | a96cfee98a22e262367868f343b599c2312149b7 (diff) | |
| download | bcm5719-llvm-673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582.tar.gz bcm5719-llvm-673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582.zip | |
compiler-rt: Rename cc files below test/asan to cpp
See r367803 and similar other changes.
llvm-svn: 367887
Diffstat (limited to 'compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc')
| -rw-r--r-- | compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc b/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc deleted file mode 100644 index 730bf3a3ebe..00000000000 --- a/compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc +++ /dev/null @@ -1,18 +0,0 @@ -// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ -// RUN: not %run %t 2>&1 | FileCheck %s - -#include <stdlib.h> - -int *p; - -int main() { - for (int i = 0; i < 3; i++) { - int x; - p = &x; - } - return *p; // BOOM - // CHECK: ERROR: AddressSanitizer: stack-use-after-scope - // CHECK: #0 0x{{.*}} in main {{.*}}use-after-scope-loop-removed.cc:[[@LINE-2]] - // CHECK: Address 0x{{.*}} is located in stack of thread T{{.*}} at offset [[OFFSET:[^ ]+]] in frame - // {{\[}}[[OFFSET]], {{[0-9]+}}) 'x' -} |

