]>
Commit | Line | Data |
---|---|---|
92a42be0 SL |
1 | // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316 |
2 | // XFAIL: android | |
3 | // | |
1a4d82fc JJ |
4 | // Test that kernel area is not sanitized on 32-bit machines. |
5 | // | |
6 | // RUN: %clangxx_asan %s -o %t | |
92a42be0 SL |
7 | // RUN: %env_asan_opts=verbosity=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%kernel_bits |
8 | // RUN: %env_asan_opts=verbosity=1:full_address_space=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%kernel_bits | |
9 | // RUN: %env_asan_opts=verbosity=1:full_address_space=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-kernel-64-bits | |
1a4d82fc | 10 | // |
92a42be0 SL |
11 | // CHECK-kernel-32-bits: || `[0x38{{0+}}, 0xb{{f+}}]` || HighMem || |
12 | // CHECK-kernel-32-bits: || `[0x27{{0+}}, 0x37{{f+}}]` || HighShadow || | |
13 | // CHECK-kernel-32-bits: || `[0x24{{0+}}, 0x26{{f+}}]` || ShadowGap || | |
1a4d82fc | 14 | // |
92a42be0 SL |
15 | // CHECK-kernel-64-bits: || `[0x4{{0+}}, 0x{{f+}}]` || HighMem || |
16 | // CHECK-kernel-64-bits: || `[0x28{{0+}}, 0x3{{f+}}]` || HighShadow || | |
17 | // CHECK-kernel-64-bits: || `[0x24{{0+}}, 0x27{{f+}}]` || ShadowGap || | |
1a4d82fc | 18 | // |
92a42be0 | 19 | // REQUIRES: asan-32-bits,i386-supported-target |
1a4d82fc JJ |
20 | |
21 | int main() { | |
22 | return 0; | |
23 | } | |
24 |