annotate test/arrayinit.d @ 100:5071469303d4 trunk

[svn r104] TONS OF FIXES. Split up declaration, constant initializer gen and definition for globals, structs, classes and functions. Improved ClassInfo support (not complete), not in vtable yet. Fixed a bunch of forward reference problems. Much more. Major commit! :)
author lindquist
date Fri, 16 Nov 2007 08:21:47 +0100
parents ee302fe07296
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
c53b6e3fe49a [svn r5] Initial commit. Most things are very rough.
lindquist
parents:
diff changeset
1 module arrayinit;
c53b6e3fe49a [svn r5] Initial commit. Most things are very rough.
lindquist
parents:
diff changeset
2 float[4] ftable = [1,2,3,4];
c53b6e3fe49a [svn r5] Initial commit. Most things are very rough.
lindquist
parents:
diff changeset
3 int[8] itable = [3:42,6:123];
c53b6e3fe49a [svn r5] Initial commit. Most things are very rough.
lindquist
parents:
diff changeset
4
c53b6e3fe49a [svn r5] Initial commit. Most things are very rough.
lindquist
parents:
diff changeset
5 private uint[7] crc32_table = [0x00000000,0x77073096,0xee0e612c,0x990951ba,0x076dc419,0x706af48f,0xe963a535];
12
ee302fe07296 [svn r16] * Updated all tests to have a main
lindquist
parents: 1
diff changeset
6
ee302fe07296 [svn r16] * Updated all tests to have a main
lindquist
parents: 1
diff changeset
7 void main()
ee302fe07296 [svn r16] * Updated all tests to have a main
lindquist
parents: 1
diff changeset
8 {
ee302fe07296 [svn r16] * Updated all tests to have a main
lindquist
parents: 1
diff changeset
9 assert(crc32_table[3] == 0x990951ba);
ee302fe07296 [svn r16] * Updated all tests to have a main
lindquist
parents: 1
diff changeset
10 }