blob: 9b83947442ed0186ed72b873b2b92ec3b0f9957f [file] [log] [blame]
Stephen Hines86277eb2015-03-23 12:06:32 -07001// RUN: %clang_cl_asan -O0 %s -Fe%t
2// RUN: not %run %t 2>&1 | FileCheck %s
3
4#include <stdio.h>
5
6char bigchunk[1 << 30];
7
8int main() {
9 printf("Hello, world!\n");
10 scanf("%s", bigchunk);
11// CHECK-NOT: Hello, world!
12// CHECK: Shadow memory range interleaves with an existing memory mapping.
13// CHECK: ASan shadow was supposed to be located in the [0x2fff0000-0x{{.*}}ffff] range.
14// CHECK: Dumping process modules:
15// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}shadow_mapping_failure
Stephen Hines86277eb2015-03-23 12:06:32 -070016// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}ntdll.dll
17}