blob: b14c5fca2e58e4317eaf846085031b33f2afebe9 [file] [log] [blame]
; RUN: opt -S -passes=globalopt < %s | FileCheck %s
; Gracefully handle undef global_ctors/global_dtors
; CHECK: @llvm.global_ctors = appending global [0 x { i32, ptr, ptr }] undef
; CHECK: @llvm.global_dtors = appending global [0 x { i32, ptr, ptr }] undef
@llvm.global_ctors = appending global [0 x { i32, ptr, ptr }] undef
@llvm.global_dtors = appending global [0 x { i32, ptr, ptr }] undef