Files
cappuccino/Tests/Objective-J/Preprocessor/OutputTests/Misc/empty-statements.j
T
Martin Carlberg 23fb618596 Fixed: Compiler now generates correct empty statement after 'if (a);'
Earlier the compiler generated the 'if' without the last ';' when a empty statement is used, with sometimes devastating result. The same if an empty statement was after the 'else'.

I have also added a test case for some different empty statement senarios.
2013-09-09 16:38:38 +02:00

8 lines
105 B
Plaintext

function f(x) {
var a = 2, b = 1;
while (a < b);
for (;;);
if (a < b); else;
do {} while (a < b);
}