llvm-project/llvm/test/Transforms/GlobalOpt/undef-ctor-dtor.ll

10 lines
417 B
LLVM

; RUN: opt -S -passes=globalopt < %s | FileCheck %s
; Gracefully handle undef global_ctors/global_dtors
; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] undef
; CHECK: @llvm.global_dtors = appending global [0 x { i32, void ()*, i8* }] undef
@llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] undef
@llvm.global_dtors = appending global [0 x { i32, void ()*, i8* }] undef