annotate tests/mini/bug60.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
children
rev   line source
lindquist@94 1 module bug60;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@270 3
lindquist@94 4 void func(T...)(T t)
lindquist@94 5 {
lindquist@94 6 foreach(v;t) {
lindquist@94 7 if (v.length) {
lindquist@94 8 foreach(i;v) {
lindquist@94 9 printf("%d\n", i);
lindquist@94 10 }
lindquist@94 11 }
lindquist@94 12 }
lindquist@94 13 }
lindquist@94 14 void main()
lindquist@94 15 {
lindquist@94 16 auto a = [1,2,3];
lindquist@94 17 func(a);
lindquist@94 18 }