bug945376SizeBoundStartSeg.js 809 B

123456789101112131415161718192021222324252627282930
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. //reduced switches: -ForceArrayBTree
  6. function test0() {
  7. var c = 4294967295;
  8. var ary = Array();
  9. var func2 = function () {
  10. ary.pop();
  11. ary.pop();
  12. return 4;
  13. };
  14. function func3() {
  15. --c
  16. ary.reverse();
  17. return func2()+ 1;
  18. }
  19. ary[c] = 1;
  20. ary.splice(0, 0, func2(), func3());
  21. ary.push(2);
  22. ary[c] = 0;
  23. ary.splice(1, 0, func2(), func3());
  24. ary.push(3);
  25. }
  26. test0();
  27. print("PASS");