view tests/mini/unrolled.d @ 1437:efa34a3bb8fc

Fix test for mingw
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Sat, 30 May 2009 14:57:48 -0600
parents 1bb99290e03a
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);
}