summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw2311.pp
diff options
context:
space:
mode:
authorfpc <fpc@3ad0048d-3df7-0310-abae-a5850022a9f2>2005-05-16 18:37:41 +0000
committerfpc <fpc@3ad0048d-3df7-0310-abae-a5850022a9f2>2005-05-16 18:37:41 +0000
commitf206a9c2b1ae1d8727ca27a96d448b61fdb4c766 (patch)
treef28256ff9964c1fc7c0f7fb00891268a117b745d /tests/webtbs/tw2311.pp
downloadfpc-f206a9c2b1ae1d8727ca27a96d448b61fdb4c766.tar.gz
initial import
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@1 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/webtbs/tw2311.pp')
-rw-r--r--tests/webtbs/tw2311.pp46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/webtbs/tw2311.pp b/tests/webtbs/tw2311.pp
new file mode 100644
index 0000000000..9f3c22b45c
--- /dev/null
+++ b/tests/webtbs/tw2311.pp
@@ -0,0 +1,46 @@
+{ %CPU=i386 }
+{ %OPT=-O1 -CX }
+{ Source provided for Free Pascal Bug Report 2311 }
+{ Submitted by "Michael Brown" on 2003-01-06 }
+{ e-mail: emboss1@i4free.co.nz }
+{ modified by Pierre Muller to get a good check }
+{$goto on}
+
+program Kernel;
+
+procedure DisplayRAM;
+begin
+end;
+
+const
+ passes : longint = 0;
+ i : longint = 0;
+label
+ end_label;
+begin
+
+ inc(passes);
+
+ if passes>1 then
+ goto end_label;
+ DisplayRAM;
+
+ while true do
+ begin
+ asm
+ nop
+ end;
+ inc(i);
+ Writeln(i);
+ if i > 10 then
+ break;
+ end;
+ end_label:
+ if passes<>1 then
+ begin
+ writeln('Error in test 2311');
+ halt(1);
+ end;
+end.
+
+