1 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 2 target triple = "x86_64-apple-macosx10.11.0" 3 4 declare 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. 8 define 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. 15 define void @boo() { 16 ret void 17 } 18 19 define void @another_dead_func() { 20 call void @dead_func() 21 ret void 22 } 23