Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add more LLVM::Module.dump tests. Because we can!

  • Loading branch information...
commit 48694c40a95e4fab7655deb959c062ef7e7dbd74 1 parent 90b57bd
@bacek bacek authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 t/library/llvm/99-example.t
View
5 t/library/llvm/99-example.t
@@ -56,9 +56,10 @@ ok( 1, "return created");
ok( $module.verify, "Module verified");
-# This will dump to stderr.
-$module.dump();
+$s := $module.dump();
+diag( $s );
ok(1, "LLVM::Module dumped");
+ok( $s ~~ / 'define i32 @hello' /, ".. with function definition");
my $engine := pir::new__psp("LLVM_Engine", $module);
my $call := $engine.create_call($function, "i");
Please sign in to comment.
Something went wrong with that request. Please try again.