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/Windows/shadow_mapping_failure.cpp | |
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/Windows/shadow_mapping_failure.cpp')
-rw-r--r-- | compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cpp b/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cpp new file mode 100644 index 00000000000..c774689941b --- /dev/null +++ b/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cpp @@ -0,0 +1,18 @@ +// RUN: %clang_cl_asan -Od %s -Fe%t +// RUN: not %run %t 2>&1 | FileCheck %s +// REQUIRES: asan-32-bits + +#include <stdio.h> + +char bigchunk[1 << 30]; + +int main() { + printf("Hello, world!\n"); + scanf("%s", bigchunk); +// CHECK-NOT: Hello, world! +// CHECK: Shadow memory range interleaves with an existing memory mapping. +// CHECK: ASan shadow was supposed to be located in the [0x2fff0000-0x{{.*}}ffff] range. +// CHECK: Dumping process modules: +// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}shadow_mapping_failure +// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}ntdll.dll +} |