view tangotests/aa1.d @ 240:0db62b770a49 trunk

[svn r257] Fixed: array .sort and .reverse runtime code was incorrect. Fixed: most runtime calls did not get correct param attrs.
author lindquist
date Mon, 09 Jun 2008 00:01:10 +0200
parents a8cd9bc1021a
children
line wrap: on
line source

module tangotests.aa1;

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

void main()
{
    int[int] map;
    map[1] = 1;
    map[10] = 1;
    map[11] = 11;
    map[14] = 41;
    map[21] = 12;
    map[23] = 32;
    map[32] = 23;
    map[201] = 102;
    foreach(k,v; map)
    {
        printf("%d:%d ", k,v);
    }
    printf("\n");
}