• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/03_switch_fallthrough_miscompilation

  1 When falling through from a matched switch case into the default case,
  2 the compiler incorrectly emitted bytecode that led to an endless loop.
  3 
  4 -- Expect stdout --
  5 1
  6 -- End --
  7 
  8 -- Testcase --
  9 {%
 10         switch (1) {
 11         case 1:
 12         default:
 13                 print("1\n");
 14         }
 15 %}
 16 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt