mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-06 15:34:10 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
18
tests/mini/bug60.d
Normal file
18
tests/mini/bug60.d
Normal file
@@ -0,0 +1,18 @@
|
||||
module bug60;
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void func(T...)(T t)
|
||||
{
|
||||
foreach(v;t) {
|
||||
if (v.length) {
|
||||
foreach(i;v) {
|
||||
printf("%d\n", i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
void main()
|
||||
{
|
||||
auto a = [1,2,3];
|
||||
func(a);
|
||||
}
|
||||
Reference in New Issue
Block a user