blob: d77a5cdaafd65869de25958c1c3cb4a586faf632 [file] [log] [blame]
; RUN: opt -S -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