view test/unrolled.d @ 316:163cad969791 trunk

[svn r337] Reverted changes to toobj.cpp: Module constructor calls can never be invokes.
author ChristianK
date Fri, 04 Jul 2008 08:51:49 +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);
}