annotate test/bug58.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 |
61615fa85940 |
children |
|
rev |
line source |
lindquist@94
|
1 module bug58;
|
lindquist@94
|
2 import std.stdio;
|
lindquist@94
|
3 void main()
|
lindquist@94
|
4 {
|
lindquist@94
|
5 int[16] arr = [1,16,2,15,3,14,4,13,5,12,6,11,7,10,8,9];
|
lindquist@94
|
6 writefln("arr = ",arr);
|
lindquist@94
|
7 arr.sort;
|
lindquist@94
|
8 writefln("arr.sort = ",arr);
|
lindquist@94
|
9 assert(arr == [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]);
|
lindquist@100
|
10 }
|