blob: 79ed0b78fd6a4f0bf6c7992fbdaaedc8030aeb7d [file] [log] [blame]
; Check Default behaviour still emits ctors
; RUN: opt < %s -passes=asan -S | \
; RUN: FileCheck -check-prefix=CHECK-DEFAULT %s
; CHECK-DEFAULT: llvm.global_ctor{{.+}}asan.module_ctor
; CHECK-DEFAULT: define internal void @asan.module_ctor
; Check with ctor emission disabled
; RUN: opt < %s -passes=asan \
; RUN: -asan-constructor-kind=none -S | \
; RUN: FileCheck %s
; CHECK-NOT: llvm.global_ctor{{.+}}asan.module_ctor
; CHECK-NOT: define internal void @asan.module_ctor
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx11.0.0"
@foo = dso_local global i32 0, align 4