1target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 2target triple = "x86_64-apple-macosx10.11.0" 3 4declare void @dead_func() 5 6; Called from a @dead_func() in the other file, should not be imported there 7; Ensure the cycle formed by calling @dead_func doesn't prevent stripping. 8define void @baz() { 9 call void @dead_func() 10 ret void 11} 12 13; Called via llvm.global_ctors, should be detected as live via the 14; marking of llvm.global_ctors as a live root in the index. 15define void @boo() { 16 ret void 17} 18 19define void @another_dead_func() { 20 call void @dead_func() 21 ret void 22} 23 24define linkonce_odr void @linkonceodrfuncwithalias() { 25entry: 26 ret void 27} 28