Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 8d716aa25529d443d77ce1b9dd08f8d5c8b5eb01 1 parent f3c409b
@bacek bacek authored rurban committed
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.