annotate test/bug30.d @ 94:61615fa85940
trunk
[svn r98] Added support for std.c.stdlib.alloca via pragma(LLVM_internal, "alloca").
Added support for array .sort and .reverse properties.
Fixed some bugs with pointer arithmetic.
Disabled some DMD AST optimizations that was messing things up, destroying valuable information.
Added a KDevelop project file, this is what I use for coding LLVMDC now :)
Other minor stuff.
author |
lindquist |
date |
Mon, 12 Nov 2007 06:32:46 +0100 |
parents |
0c77619e803b |
children |
|
rev |
line source |
52
|
1 module bug30;
|
|
2
|
|
3 void main()
|
|
4 {
|
|
5 int[] a = new int[4];
|
|
6 {a[0] = 1;
|
|
7 a[1] = 2;
|
|
8 a[2] = 3;
|
|
9 a[3] = 4;}
|
|
10 int[] b = new int[4];
|
|
11 {b[0] = 1;
|
|
12 b[1] = 2;
|
|
13 b[2] = 3;
|
|
14 b[3] = 4;}
|
|
15 int[] c = new int[4];
|
|
16 {c[0] = 1;
|
|
17 c[1] = 2;
|
|
18 c[2] = 4;
|
|
19 c[3] = 3;}
|
|
20 {assert(a == b);}
|
|
21 {assert(a != c);}
|
|
22 }
|