int i; int a() { for(i = 0; i < 2; i++) return; }
results in:
i: DINT; FUNCTION a:DINT; i := 0; WHILE i < 2; DO RETURN; ((i:=i+1)-1); END_WHILE
The semicolon after the while expression is invalid.
Log in to post a comment.