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