tw4139.pp 333 B

123456789101112131415161718192021222324
  1. { %fail }
  2. { %opt=-Sew }
  3. { Source provided for Free Pascal Bug Report 4139 }
  4. { Submitted by "Christian Iversen" on 2005-06-29 }
  5. { e-mail: [email protected] }
  6. {$mode delphi}
  7. type
  8. Foobar = (a, b, c, d);
  9. const
  10. Test = c;
  11. const
  12. List = [a, c];
  13. {$IF Test in List}
  14. {$MESSAGE WARN 'This should work'}
  15. {$IFEND}
  16. begin
  17. end.