view tangotests/mem6.d @ 263:2be09ee06bc7 trunk

[svn r284] Fixed some problems with cases, code is not as pretty, but it doesn't crash llvm!
author lindquist
date Sat, 14 Jun 2008 06:13:35 +0200
parents 4c2689d57ba4
children
line wrap: on
line source

module tangotests.mem6;

extern(C) int printf(char*,...);

int main(){
        int[] index;
        char[] value;

        foreach(int i, char c; "_\U00012345-"){
                printf("str[%d] = %d\n", i , cast(int)c);
                index ~= i;
                //value ~= c;
        }
        printf("done\n");

        return 0;
}