Restore "Move metadata linking after lazy global materialization/linking."
[oota-llvm.git] / test / Linker / distinct.ll
index c8e5c89eb095d23aca2fc3348e33e3fc193a7f36..d88d8ae16d9adad79590807f9fbc072ea2432ede 100644 (file)
@@ -6,6 +6,8 @@
 
 ; CHECK: @global = linkonce global i32 0
 @global = linkonce global i32 0
+; Add an external reference to @global so that it gets linked in.
+@alias = alias i32, i32* @global
 
 ; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !0, !1, !2, !9, !10, !11, !12, !13, !14}
 !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}