Permalink
Browse files

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

  • Loading branch information...
bacek committed Apr 25, 2011
1 parent 90b57bd commit 48694c40a95e4fab7655deb959c062ef7e7dbd74
Showing with 3 additions and 2 deletions.
  1. +3 −2 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");

0 comments on commit 48694c4

Please sign in to comment.