annotate tests/mini/bug30.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/bug30.d@0c77619e803b
children
rev   line source
lindquist@52 1 module bug30;
lindquist@52 2
lindquist@52 3 void main()
lindquist@52 4 {
lindquist@52 5 int[] a = new int[4];
lindquist@52 6 {a[0] = 1;
lindquist@52 7 a[1] = 2;
lindquist@52 8 a[2] = 3;
lindquist@52 9 a[3] = 4;}
lindquist@52 10 int[] b = new int[4];
lindquist@52 11 {b[0] = 1;
lindquist@52 12 b[1] = 2;
lindquist@52 13 b[2] = 3;
lindquist@52 14 b[3] = 4;}
lindquist@52 15 int[] c = new int[4];
lindquist@52 16 {c[0] = 1;
lindquist@52 17 c[1] = 2;
lindquist@52 18 c[2] = 4;
lindquist@52 19 c[3] = 3;}
lindquist@52 20 {assert(a == b);}
lindquist@52 21 {assert(a != c);}
lindquist@52 22 }