Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 1 | // RUN: %clang_cl_asan -O0 %s -Fe%t |
| 2 | // RUN: not %run %t 2>&1 | FileCheck %s |
| 3 | |
| 4 | #include <stdio.h> |
| 5 | |
| 6 | char bigchunk[1 << 30]; |
| 7 | |
| 8 | int 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 Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 16 | // CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}ntdll.dll |
| 17 | } |