summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/99_bugs/23_compiler_parenthesized_division
blob: a70703f46fecd21025d83b7688de84878fe356a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
When compiling a parenthesized division or division-assignment expression,
the compiler didn't instruct the lexer to treat a potential subsequent
slash as operand, leading to an incorrect syntax error exception.

-- Expect stdout --
0
0
0
0
-- End --

-- Testcase --
{%
	print(a / 1, "\n");		// this was okay
	print(a /= 1, "\n");	// okay too
	print((a / 1), "\n");	// this failed
	print((a /= 1), "\n");	// failed as well
%}
-- End --