Skip to content

Commit

Permalink
Add test for LLVM::Value
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Mar 9, 2011
1 parent cc86324 commit c2f3abc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions t/library/llvm/04-value.t
@@ -0,0 +1,16 @@
#! parrot-nqp

# We want Test::More features for testing. Not NQP's builtin.
Q:PIR { .include "test_more.pir" };
pir::load_bytecode("LLVM.pbc");

my $val := LLVM::Constant::null(LLVM::Type::cstring());
ok( $val, "Value created");

is( $val.name, "", "Without name");
$val.name("THE_NULL");
is( $val.name, "THE_NULL", "name updated", :todo<Find proper type with name>);

done_testing();

# vim: ft=perl6

0 comments on commit c2f3abc

Please sign in to comment.