view test/unrolled.d @ 322:1aaf6ff7f685 trunk

[svn r343] Move object.di used for running dstress into separate directory.
author ChristianK
date Wed, 09 Jul 2008 17:02:55 +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);
}