alloc 316 B

123456789101112131415161718192021
  1. void main() {
  2. int start = 0;
  3. int[] a = new int[4];
  4. int[] b = a;
  5. int[] c = b;
  6. test(a == c);
  7. test(length(a));
  8. test(length(b));
  9. test(length(c));
  10. a[0] = 50;
  11. a[1] = 60;
  12. a[2] = 70;
  13. a[3] = 80;
  14. test(a[0]);
  15. test(a[1]);
  16. test(a[2]);
  17. test(a[3]);
  18. }