view test/unrolled.d @ 281:f5f97ca47b33 trunk

[svn r302] Make HaltExps and assert(0) generate an assert message again instead of using llvm's trap intrinsic.
author ChristianK
date Fri, 20 Jun 2008 23:38:51 +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);
}