Browse Source

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

git-svn-id: trunk@18931 -
pierre 14 years ago
parent
commit
acd585513a
2 changed files with 24 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 23 0
      tests/test/testlderror.pp

+ 1 - 0
.gitattributes

@@ -9955,6 +9955,7 @@ tests/test/terecs_u1.pp svneol=native#text/pascal
 tests/test/testcmem.pp svneol=native#text/plain
 tests/test/testcmem.pp svneol=native#text/plain
 tests/test/testda1.pp svneol=native#text/plain
 tests/test/testda1.pp svneol=native#text/plain
 tests/test/testfpuc.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/testmovd.pp svneol=native#text/plain
 tests/test/tests.pp svneol=native#text/plain
 tests/test/tests.pp svneol=native#text/plain
 tests/test/testsse2.pp svneol=native#text/plain
 tests/test/testsse2.pp svneol=native#text/plain

+ 23 - 0
tests/test/testlderror.pp

@@ -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.