Fix this test to not rely on the path but to use the
[oota-llvm.git] / test / Feature / load_module.ll
index b229e261e810df04799c95a6dabac82a3d44fdb8..356eceb285eae1aef5ca13094ab0726bd673ce28 100644 (file)
@@ -1,6 +1,10 @@
 ; PR1318
-; RUN: llvm-as < %s > %t.bc &&
-; RUN: opt -load=%llvmlibsdir/LLVMHello%shlibext -hello \
-; RUN:   -disable-output %t.bc | grep Hello
+; RUN: llvm-as < %s | opt -load=%llvmlibsdir/LLVMHello%shlibext -hello \
+; RUN:   -disable-output - |& grep Hello
 
 @junk = global i32 0
+
+define i32* @somefunk() {
+  ret i32* @junk
+}
+