Mercurial > projects > ldc
comparison tests/mini/arrayinit.d @ 341:1bb99290e03a trunk
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:51:19 +0200 |
parents | test/arrayinit.d@ee302fe07296 |
children |
comparison
equal
deleted
inserted
replaced
340:351c0077d0b3 | 341:1bb99290e03a |
---|---|
1 module arrayinit; | |
2 float[4] ftable = [1,2,3,4]; | |
3 int[8] itable = [3:42,6:123]; | |
4 | |
5 private uint[7] crc32_table = [0x00000000,0x77073096,0xee0e612c,0x990951ba,0x076dc419,0x706af48f,0xe963a535]; | |
6 | |
7 void main() | |
8 { | |
9 assert(crc32_table[3] == 0x990951ba); | |
10 } |