mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 13:31:20 +02:00
* New test to check that external linker error generates a compilation error
git-svn-id: trunk@18931 -
This commit is contained in:
parent
8a8db0a822
commit
acd585513a
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
23
tests/test/testlderror.pp
Executable 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.
|
Loading…
Reference in New Issue
Block a user