Use a ManagedCleanup to prevent leaking the PassRegistrar map. In breaks the
[oota-llvm.git] / test / Feature / global_section.ll
index 179d99bba865b9b756eb9c239995b855244df7ec..b8f5eb1b666c6f0912a23f4e10d06bfc5038394a 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 
-%X = global int 4, section "foo", align 16
+@X = global i32 4, section "foo", align 16              ; <i32*> [#uses=0]
 
-void %test() section "bar" {
-       ret void
+define void @test() section "bar" {
+        ret void
 }