1 ; Check Default behaviour still emits dtors
2 ; RUN: opt < %s -passes=asan -S | FileCheck -check-prefix=CHECK-DEFAULT %s
3 ; CHECK-DEFAULT: llvm.global_dtor{{.+}}asan.module_dtor
4 ; CHECK-DEFAULT: define internal void @asan.module_dtor
6 ; Check with dtor emission disabled
7 ; RUN: opt < %s -passes=asan -asan-destructor-kind=none -S | FileCheck %s
8 ; CHECK-NOT: llvm.global_dtor{{.+}}asan.module_dtor
9 ; CHECK-NOT: define internal void @asan.module_dtor
11 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12 target triple = "x86_64-apple-macosx11.0.0"
14 @foo = dso_local global i32 0, align 4