Frank Heckenbach wrote:
... snip ...
and another oldie is a for loop up to maxint
FOR i :- maxint-5 TO maxint DO write(i : 10);
which becomes an infinite loop on some systems.
Also with GPC? This would surprise me since GPC contains explicit code to prevent this, and at least on IA32 where I'm on right now, it works correctly.
Hadn't tried it. Now I won't bother. I went through some gyrations to stamp it out on PascalP, so it sticks in memory.
I can prepare a few sample tests after I get more familiar with the package.
This would be very welcome. The chapter `Support', section `Reporting Bugs' in the GPC manual, as well as the file BUGS in <prefix>/doc/gpc (or similar) in GPC installations and test/README in GPC sources describes how to set up tests for our test suite.
A couple of things.
1. Would it be possible to have the mailing list insert a "Reply-to:" header, so that replies are auto routed to the list, rather than to the originator. I still don't know who wants what, but that seems to me to be the better destination, and editing the To: field is a pain.
2. The test suite could well be separated into a separate tarball, and made available separately. This would not preclude including that tarball in the source distribution. I gather that the full source is totally unnecessary for test execution.
3. The tests might well be grouped by area, eg. ISO, Extended, Object, Delphi, GNU. To a large extent each section includes the preceding one, and tests could be flagged if they will fail on a 'higher' group. For example, anything that includes 'const' for parameters will fail on ISO or Extended (I believe). Strict declaration section order is probably a failed test for some variants, so the headers should include a: basic area b: not for area list. Separate directories for each such group would be handy. I see no great purpose in segregating ISO-0 and ISO-1, although there is an argument for it. Once setup existing tests could be gradually migrated.
4. The tests are obviously setup for Unixy/GNUized system control, although I detect a lot of effort at segregating that. I think they are a product in their own right, and should have a separate life, and be useful for other systems than GPC. It is too bad they couldn't be built on the basis of the original test suite, now held by Prospero.