Mercurial > projects > ldc
diff test/bug30.d @ 52:0c77619e803b trunk
[svn r56] Initial support for TypeInfo.
Enums not work.
Several other bugfixes.
author | lindquist |
---|---|
date | Tue, 23 Oct 2007 05:55:12 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bug30.d Tue Oct 23 05:55:12 2007 +0200 @@ -0,0 +1,22 @@ +module bug30; + +void main() +{ + int[] a = new int[4]; + {a[0] = 1; + a[1] = 2; + a[2] = 3; + a[3] = 4;} + int[] b = new int[4]; + {b[0] = 1; + b[1] = 2; + b[2] = 3; + b[3] = 4;} + int[] c = new int[4]; + {c[0] = 1; + c[1] = 2; + c[2] = 4; + c[3] = 3;} + {assert(a == b);} + {assert(a != c);} +}