tw3253.pp 360 B

12345678910111213141516
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 3253 }
  3. { Submitted by "marco" on 2004-08-16 }
  4. { e-mail: }
  5. PROGRAM TEST;
  6. {$R+}
  7. {$Q+}
  8. CONST Range = 10;
  9. { The next line is not possible, the ( expects an enumeration declation }
  10. TYPE Sometype = ((-1)*(Range-1))..(Range-1);
  11. VAR Somevar: SOMETYPE;
  12. BEGIN
  13. Somevar := -9;
  14. WriteLn(Somevar);
  15. END.