diff tangotests/vararg1.d @ 163:a8cd9bc1021a trunk

[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author lindquist
date Mon, 05 May 2008 07:36:29 +0200
parents
children 6476da35a0fe
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tangotests/vararg1.d	Mon May 05 07:36:29 2008 +0200
@@ -0,0 +1,13 @@
+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);
+}