pl0/tests/constants.pl0

11 lines
187 B
Text
Raw Permalink Normal View History

2016-05-29 20:56:46 +02:00
# This program tests if statements and constants.
CONST X = 20;
BEGIN
# Expect: 10
IF X >= 10 THEN ! 10;
# Expect: 20
IF X >= 20 THEN ! 20;
IF X >= 30 THEN ! 30
END.