Skip to content

Commit

Permalink
[t] Add a few more hll interop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Sep 12, 2011
1 parent 607dead commit 865c8eb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions t/pir/interop.t
Expand Up @@ -19,10 +19,24 @@ Tests for HLL interoperability from PIR.
.sub main :main

.include 'test_more.pir'
plan(1)
plan(3)

load_language 'parrot'
ok(1)
ok(1, 'loaded parrot language')
.local pmc c
c = compreg 'parrot'
$P0 = get_class [ 'Parrot'; 'Compiler' ]
isa_ok(c, $P0)

c.'export'('foo bar')
ok(1, 'can call export on parrot compiler')

.end

.sub foo
.end

.sub bar
.end

# Local Variables:
Expand Down

0 comments on commit 865c8eb

Please sign in to comment.