view test/unrolled.d @ 301:f42a1090e895 trunk

[svn r322] More asm-to-outside jumping work. Unfinished.
author ChristianK
date Tue, 24 Jun 2008 22:48:33 +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);
}