25 lines · plain
1; RUN: opt < %s -passes=asan -S | FileCheck %s2 3target triple = "x86_64-unknown-linux-gnu"4 5@g = dso_local global i32 0, align 46 7define i32 @test_load() sanitize_address {8entry:9 %tmp = load i32, ptr @g, align 410 ret i32 %tmp11}12 13!llvm.module.flags = !{!0, !1}14 15;; Due to -fasynchronous-unwind-tables.16!0 = !{i32 7, !"uwtable", i32 2}17 18;; Due to -fno-omit-frame-pointer.19!1 = !{i32 7, !"frame-pointer", i32 2}20 21;; Set the uwtable attribute on ctor/dtor.22; CHECK: define internal void @asan.module_ctor() #[[#ATTR:]]23; CHECK: define internal void @asan.module_dtor() #[[#ATTR]]24; CHECK: attributes #[[#ATTR]] = { nounwind uwtable "frame-pointer"="all" }25