comparison test/arrayinit.d @ 12:ee302fe07296 trunk

[svn r16] * Updated all tests to have a main * Updated runalltests to both compile and run the tests
author lindquist
date Tue, 02 Oct 2007 05:27:44 +0200
parents c53b6e3fe49a
children
comparison
equal deleted inserted replaced
11:d3ee9efe20e2 12:ee302fe07296
1 module arrayinit; 1 module arrayinit;
2 float[4] ftable = [1,2,3,4]; 2 float[4] ftable = [1,2,3,4];
3 int[8] itable = [3:42,6:123]; 3 int[8] itable = [3:42,6:123];
4 4
5 private uint[7] crc32_table = [0x00000000,0x77073096,0xee0e612c,0x990951ba,0x076dc419,0x706af48f,0xe963a535]; 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 }