view tangotests/vararg1.d @ 167:adca7f32fb6d trunk

[svn r183] Fixed broken identity expressions with two pointers of different types. Fixed broken pointer arithmetic for subtraction (tango.text.Util unittest now passes)
author lindquist
date Tue, 06 May 2008 01:23:02 +0200
parents a8cd9bc1021a
children 6476da35a0fe
line wrap: on
line source

module tangotests.vararg1;

import tango.io.Stdout;

void func(int[] arr...)
{
    Stdout.formatln("1,2,4,5,6 == {},{},{},{},{}", arr[0],arr[1],arr[2],arr[3],arr[4]);
}

void main()
{
    func(1,2,4,5,6);
}