fpc/tests/test/thintdir2a.pp
paul 1c578de28c compiler:
* don't allow to apply the same hint directive twice
  * change parser_e_proc_dir_not_allowed to more generic variant parser_e_dir_not_allowed - they are similar and 'procedure' prefix does not give more information about the error.
  * maybe_parse_hint_directives() uses procdef settings for initial values
  + add tests

git-svn-id: trunk@25720 -
2013-10-08 04:56:42 +00:00

12 lines
214 B
ObjectPascal

{ %FAIL }
{ %NORUN }
program thintdir2a;
// don't allow to use hint modifier twice
{$mode delphi}
const
Test = 1 deprecated 'Do not use this const' deprecated 'Use that const';
begin
end.