Permalink
Browse files

Add usage/testing of new LLVM::Module.dump.

  • Loading branch information...
1 parent 36389e4 commit f3c409be057a734c07784ac0110efb4e5cee4da8 @bacek bacek committed with Reini Urban Apr 25, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 t/library/llvm/05-module.t
@@ -39,6 +39,11 @@ my $type := $module.get_type($type_name);
ok( $type, "Type found" );
ok( $type ~~ LLVM::Type, ".. with proper type");
+# Check module dump.
+my $s := $module.dump();
+diag( $s );
+ok( $s ~~ / struct.FOO /, ".. dump has struct definition");
+
$module.delete_type($type_name);
ok( 1, "Type deleted" );

0 comments on commit f3c409b

Please sign in to comment.