Fix Windows build: replace __func__ with LLVM_FUNCTION_NAME
[oota-llvm.git] / test / Feature / load_module.ll
index 942390e77d288c6f9feb3071035ca9ea9da0a51b..14c1153fa5698ae0519be69bf666609a602f6f1e 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 2>&1 | grep Hello
+; RUN: opt < %s -load=%llvmshlibdir/LLVMHello%shlibext -hello \
+; RUN:   -disable-output 2>&1 | 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
+}
+