duplicateStringCaseArmBug.js 903 B

123456789101112131415161718192021222324252627282930313233
  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. //-maxinterpretcount:1 D:\fbl_ie_script_dev\testFiles\bug8.js -loopinterpretcount:1 -bgjit- -MaxLinearStringCaseCount:2
  6. function test0(){
  7. var b = 5;
  8. var __loopvar1 = 3;
  9. for(; __loopvar1 < 4; __loopvar1++) {
  10. switch('m') {
  11. case 'n':
  12. break;
  13. case 'a':
  14. break;
  15. case 'n':
  16. WScript.Echo("m");
  17. b|2;
  18. break;
  19. default:
  20. break;
  21. }
  22. }
  23. };
  24. // generate profile
  25. test0();
  26. test0();
  27. WScript.Echo("PASSED");