tw1430.pp 387 B

1234567891011121314151617181920
  1. { Source provided for Free Pascal Bug Report 1430 }
  2. { Submitted by "Keith R. Bolson" on 2001-03-07 }
  3. { e-mail: [email protected] }
  4. PROGRAM fpc1;
  5. PROCEDURE DoType( b :BOOLEAN; t,f: STRING);
  6. BEGIN
  7. IF b THEN writeln(t) ELSE writeln(f);
  8. if b then
  9. halt(1);
  10. END;
  11. VAR
  12. ax, ay: Char;
  13. BEGIN
  14. ax := 'X'; ay := 'Y';
  15. DoType( ( ([ax, ay] * ['A','C','D']) <> []), 'yes', 'no');
  16. END.