Browse Source

+ added test for the error checking for nil-number; tests already exist for
nil+number and number+nil, so this was the only one missing

git-svn-id: trunk@28235 -

nickysn 11 years ago
parent
commit
84a18e57bc
2 changed files with 9 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 8 0
      tests/tbf/tb0249.pp

+ 1 - 0
.gitattributes

@@ -9618,6 +9618,7 @@ tests/tbf/tb0245.pp svneol=native#text/pascal
 tests/tbf/tb0246.pp svneol=native#text/pascal
 tests/tbf/tb0246.pp svneol=native#text/pascal
 tests/tbf/tb0247.pp svneol=native#text/pascal
 tests/tbf/tb0247.pp svneol=native#text/pascal
 tests/tbf/tb0248.pp svneol=native#text/pascal
 tests/tbf/tb0248.pp svneol=native#text/pascal
+tests/tbf/tb0249.pp svneol=native#text/pascal
 tests/tbf/ub0115.pp svneol=native#text/plain
 tests/tbf/ub0115.pp svneol=native#text/plain
 tests/tbf/ub0149.pp svneol=native#text/plain
 tests/tbf/ub0149.pp svneol=native#text/plain
 tests/tbf/ub0158a.pp svneol=native#text/plain
 tests/tbf/ub0158a.pp svneol=native#text/plain

+ 8 - 0
tests/tbf/tb0249.pp

@@ -0,0 +1,8 @@
+{ %FAIL }
+
+program tb0249;
+var
+  p: PByte;
+begin
+  p := nil - 5;
+end.