Mercurial > projects > ldc
comparison test/multiarr1.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 | b688ad419f8c |
children | 385a18242485 |
comparison
equal
deleted
inserted
replaced
93:08508eebbb3e | 94:61615fa85940 |
---|---|
2 | 2 |
3 void main() | 3 void main() |
4 { | 4 { |
5 int[16][16] a; | 5 int[16][16] a; |
6 a[10][13] = 42; | 6 a[10][13] = 42; |
7 assert(a[0][0] == 0); | 7 //assert(a[0][0] == 0); |
8 assert(a[10][13] == 42); | 8 //assert(a[10][13] == 42); |
9 {assert(*((cast(int*)a)+10*16+13) == 42);} | 9 { |
10 int* l = cast(int*)a; | |
11 l += 10*16+13; | |
12 assert(*l == 42); | |
13 } | |
10 } | 14 } |