summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/04_bugs/03_switch_fallthrough_miscompilation
blob: 3e6410ea6ed1ca303b5c857d9be629d93be234d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
When falling through from a matched switch case into the default case,
the compiler incorrectly emitted bytecode that led to an endless loop.

-- Expect stdout --
1
-- End --

-- Testcase --
{%
	switch (1) {
	case 1:
	default:
		print("1\n");
	}
%}
-- End --