Mercurial > hg > CbC > CbC_llvm
annotate llvm/test/Instrumentation/AddressSanitizer/keep_going.ll @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
rev | line source |
---|---|
150 | 1 ; Test asan internal compiler flags: |
2 ; -asan-recover=1 | |
3 | |
4 ; RUN: opt < %s -asan -asan-recover -asan-module -S | FileCheck %s | |
5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" | |
6 target triple = "x86_64-unknown-linux-gnu" | |
7 | |
8 define i32 @foo(i32* %p) sanitize_address { | |
9 ; CHECK: __asan_report_load4_noabort | |
10 ; CHECK-NOT: unreachable | |
11 %1 = load i32, i32* %p, align 4 | |
12 ret i32 %1 | |
13 } | |
14 |