tagged release 0.7.1
[parrot.git] / languages / pipp / t / php / references.t
blob08438ee49ab832d816a32b3d421b7700cd7aa74d
1 # $Id$
3 =head1 NAME
5 references.t - testing references
7 =head1 DESCRIPTION
9 Test references.
11 =cut
13 # pragmata
14 use strict;
15 use warnings;
17 use FindBin;
18 use lib "$FindBin::Bin/../../lib";
20 use Parrot::Config (); 
21 use Parrot::Test;
22 use Test::More     tests => 1;
24 language_output_is( 'Pipp', <<'END_CODE', <<'END_OUT', 'references', todo => 'not implemented yet' );
25 <?php
27 $var = 1;
28 $ref1 =& $var;
29 $ref2 =& $var;
30 $ref3 = $ref2;
31 echo $var; echo $ref1; echo $ref2; echo $ref3; echo "\n";
33 $var++;
34 echo $var; echo $ref1; echo $ref2; echo $ref3; echo "\n";
36 $ref1++;
37 echo $var; echo $ref1; echo $ref2; echo $ref3; echo "\n";
39 $ref2++;
40 echo $var; echo $ref1; echo $ref2; echo $ref3; echo "\n";
42 $ref3++;
43 echo $var; echo $ref1; echo $ref2; echo $ref3; echo "\n";
46 END_CODE
47 1111
48 2221
49 3331
50 4441
51 4442
52 END_OUT