* New test to check that external linker error generates a compilation error

git-svn-id: trunk@18931 -
This commit is contained in:
pierre 2011-09-01 07:35:12 +00:00
parent 8a8db0a822
commit acd585513a
2 changed files with 24 additions and 0 deletions

1
.gitattributes vendored
View File

@ -9955,6 +9955,7 @@ tests/test/terecs_u1.pp svneol=native#text/pascal
tests/test/testcmem.pp svneol=native#text/plain
tests/test/testda1.pp svneol=native#text/plain
tests/test/testfpuc.pp svneol=native#text/plain
tests/test/testlderror.pp svneol=native#text/pascal
tests/test/testmovd.pp svneol=native#text/plain
tests/test/tests.pp svneol=native#text/plain
tests/test/testsse2.pp svneol=native#text/plain

23
tests/test/testlderror.pp Executable file
View File

@ -0,0 +1,23 @@
{ %FAIL }
{ %OPT= -Xe -k--dummy-unsupported-option }
{ This is a test to check that passing
wrong options to the external linker
causes the compilation to fail }
{ Targets not supporting external linker
should be listed in skiptarget.
I don't know if we have any... }
{ Note: -k option does not force external
linker use, which means that using
-k--dummy-unsupported-option
alone doesn't generate an error
Don't know if this is a feature or a bug...
PM 2011-09-01 }
program Test_external_linker_error_report;
begin
Writeln('Test of external linker');
end.