3 // RUN: %clang_asan -fsanitize-recover=address %s -o %t
5 // RUN: env not %run %t 2>&1 | FileCheck %s
6 // RUN: %env_asan_opts=halt_on_error=true not %run %t 2>&1 | FileCheck %s
7 // RUN: %env_asan_opts=halt_on_error=false %run %t 2>&1 | FileCheck %s --check-prefix CHECK-RECOVER
11 volatile int ten
= 10;
15 // CHECK: WRITE of size 11
16 // CHECK-RECOVER: WRITE of size 11
18 // CHECK-NOT: READ of size 1
19 // CHECK-RECOVER: READ of size 1
20 volatile int res
= x
[ten
];
21 // CHECK-NOT: WRITE of size 1
22 // CHECK-RECOVER: WRITE of size 1
24 // CHECK-NOT: READ of size 1
25 // CHECK-RECOVER: READ of size 1