Browse Source

check for bug #1681

pierre 23 years ago
parent
commit
7991098920
2 changed files with 31 additions and 0 deletions
  1. 18 0
      tests/webtbf/tw1681.pp
  2. 13 0
      tests/webtbs/tw1681.pp

+ 18 - 0
tests/webtbf/tw1681.pp

@@ -0,0 +1,18 @@
+{ %OPT=-vw -Sew }
+{ The above options transform warnings into errors }
+{ so that the warning about unsupported Dlphi
+  mode becomes an error }
+
+{ Source provided for Free Pascal Bug Report 1681 }
+{ Submitted by "Boris Bukh" on  2001-11-13 }
+{ e-mail: [email protected] }
+program Mode_Bug;
+{$MODE Dlphi}
+var i:integer;
+{$MODE FPC}
+j:Integer;
+begin
+     WriteLn(SizeOf(i));
+     WriteLn(SizeOf(j));
+end.
+

+ 13 - 0
tests/webtbs/tw1681.pp

@@ -0,0 +1,13 @@
+{ Source provided for Free Pascal Bug Report 1681 }
+{ Submitted by "Boris Bukh" on  2001-11-13 }
+{ e-mail: [email protected] }
+program Mode_Bug;
+{$MODE Dlphi}
+var i:integer;
+{$MODE FPC}
+j:Integer;
+begin
+     WriteLn(SizeOf(i));
+     WriteLn(SizeOf(j));
+end.
+