Browse Source

* moe tests

pierre 21 years ago
parent
commit
d2e73e010e
2 changed files with 43 additions and 0 deletions
  1. 22 0
      tests/webtbs/tw2853d.pp
  2. 21 0
      tests/webtbs/tw2853e.pp

+ 22 - 0
tests/webtbs/tw2853d.pp

@@ -0,0 +1,22 @@
+{ OPT= -dloop }
+{ bug report variant, check that it works in
+  TP mode , added by Pierre }
+{ Source provided for Free Pascal Bug Report 2853 }
+{ Submitted by "Bj”rn Hendriks" on  2003-12-18 }
+{ e-mail: [email protected] }
+program test;
+
+begin
+   WriteLn('abc');
+{$ifdef LOOP}
+   WriteLn('def');
+{ {}
+  {$endif, this endif should be ignored,
+  as it is inside a comment}
+  (* *)
+}
+   WriteLn('ghi');
+{$endif LOOP}
+   WriteLn('test');
+end.
+

+ 21 - 0
tests/webtbs/tw2853e.pp

@@ -0,0 +1,21 @@
+{ bug report variant, check that it works in
+  TP mode , added by Pierre }
+{ Source provided for Free Pascal Bug Report 2853 }
+{ Submitted by "Bj”rn Hendriks" on  2003-12-18 }
+{ e-mail: [email protected] }
+program test;
+
+begin
+   WriteLn('abc');
+{$ifdef LOOP}
+   WriteLn('def');
+{ {}
+  {$endif, this endif should be ignored,
+  as it is inside a comment}
+  (* *)
+}
+   WriteLn('ghi');
+{$endif LOOP}
+   WriteLn('test');
+end.
+