mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-18 01:51:49 +01: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:
15
tests/mini/unrolled.d
Normal file
15
tests/mini/unrolled.d
Normal file
@@ -0,0 +1,15 @@
|
||||
module unrolled;
|
||||
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void test(T...)(T t) {
|
||||
foreach (value; t) {
|
||||
printf("%d\n", value);
|
||||
if (value == 2)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void main() {
|
||||
test(1,4,3);
|
||||
}
|
||||
Reference in New Issue
Block a user