According to Jeffrey A Law:
Think of C programs that behave differently with `--traditional', `--ansi', or `--strict-ansi'. GNU Pascal has to comply to three major dialects (ISO-7185, ISO-10206, BP 7.0) with subdialects (with/without "extended syntax" or Boolean short-circuit operations or whatever), and they are becoming even more (ANSI Object Pascal, Delphi).
OK. Is there any way to annotate the testcase itself for the extra options that it needs (like a comment in the source)?
Yes: The program contains a comment of the form
(* FLAG --extended-pascal --pedantic -Werror *)
which carries the flags that must be passed to the call to `gpc' for that the test makes sense.
Peter