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