* t/pmc/complex.t:
[parrot.git] / languages / PIR / t / pirstat.t
blobb80ca49565e75c734e0461ffaa26fbe7c210ca7a
1 #!perl
3 # Copyright (C) 2007, The Perl Foundation.
4 # $Id$
6 use strict;
7 use warnings;
8 use lib qw(t . lib ../lib ../../lib ../../../lib);
9 use Parrot::Test tests => 3;
10 use Test::More;
12 language_output_like( 'PIR_PGE', <<'CODE', qr/Parse successful!/, 'globalconst' );
14 .sub main
15         .globalconst int x = 42
16         .globalconst num pi = 3.14
17         .globalconst string hi = "hello"        
18 .end
20 CODE
22 language_output_like( 'PIR_PGE', <<'CODE', qr/Parse successful!/, 'namespace' );
24 .sub main
25         .namespace x
26         .endnamespace x
27         
28         .namespace y
29 .end
31 CODE
33 language_output_like( 'PIR_PGE', <<'CODE', qr/Parse successful!/, 'const' );
35 .sub main
36         .const int x = 42
37         .const num pi = 3.14
38         .const string hi = "hello"
39 .end
41 CODE