tests/basic/postinc-ref.sp
changeset 227 2443792ea5a3
parent 24 03c6a312213b
child 263 ba85a47ee414
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/basic/postinc-ref.sp	Sat Dec 22 16:24:04 2012 -0800
     1.3 @@ -0,0 +1,13 @@
     1.4 +native PrintNum(num);
     1.5 +
     1.6 +f(&a)
     1.7 +{
     1.8 +    return a++;
     1.9 +}
    1.10 +
    1.11 +public main()
    1.12 +{
    1.13 +    new i = 0;
    1.14 +    PrintNum(f(i));
    1.15 +    PrintNum(i);
    1.16 +}