150
|
1 ; This test checks that we are not instrumenting sanitizer code.
|
207
|
2 ; RUN: opt < %s -asan -asan-module -enable-new-pm=0 -S | FileCheck %s
|
|
3 ; RUN: opt < %s -passes='asan-pipeline' -S | FileCheck %s
|
150
|
4
|
|
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
6 target triple = "x86_64-unknown-linux-gnu"
|
|
7
|
|
8 ; Function Attrs: nounwind uwtable
|
|
9 define void @__asan_default_options(i32* %a) sanitize_address {
|
|
10 entry:
|
|
11 %tmp1 = load i32, i32* %a, align 4
|
|
12 %tmp2 = add i32 %tmp1, 1
|
|
13 store i32 %tmp2, i32* %a, align 4
|
|
14 ret void
|
|
15 }
|
|
16
|
|
17 ; CHECK-NOT: call void @__asan_report_load
|
|
18
|
|
19 ; Function Attrs: nounwind uwtable
|
|
20 define i32 @main() #0 {
|
|
21 entry:
|
|
22 ret i32 0
|
|
23 }
|
|
24
|
|
25 ; CHECK: declare void @__asan_init()
|