fix PR8769, a miscompilation by inliner when inlining a function with a byval
[oota-llvm.git] / test / Feature / load_module.ll
index b229e261e810df04799c95a6dabac82a3d44fdb8..05f6c238134f4b9daeda4f4f8ad95a385f1099dc 100644 (file)
@@ -1,6 +1,12 @@
 ; PR1318
-; RUN: llvm-as < %s > %t.bc &&
-; RUN: opt -load=%llvmlibsdir/LLVMHello%shlibext -hello \
-; RUN:   -disable-output %t.bc | grep Hello
+; RUN: opt < %s -load=%llvmshlibdir/LLVMHello%shlibext -hello \
+; RUN:   -disable-output |& grep Hello
+; REQUIRES: loadable_module
+; FIXME: On Cygming, it might fail without building LLVMHello manually.
 
 @junk = global i32 0
+
+define i32* @somefunk() {
+  ret i32* @junk
+}
+