2
0

jmpTableTest2.js 831 B

123456789101112131415161718192021222324252627
  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. //To test if BailOnNoProfile is working for MultiBr Instr created for consecutive integers
  6. function test0(a)
  7. {
  8. switch(a)
  9. {
  10. case 14:
  11. WScript.Echo('14');
  12. break;
  13. case 15:
  14. WScript.Echo('16');
  15. break;
  16. case 1:
  17. WScript.Echo('1');
  18. break;
  19. default:
  20. WScript.Echo('default');
  21. break;
  22. }
  23. }
  24. test0(1);
  25. test0(14);