view test/unrolled.d @ 326:d7e42b5d8ccd trunk

[svn r347] Foundation for adding tangobos to test environment is in place.
author ChristianK
date Thu, 10 Jul 2008 21:29:15 +0200
parents d9d5d59873d8
children
line wrap: on
line source

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);
}