pl0/tests/constants.pl0

11 lines
187 B
Plaintext

# 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.