summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-26 00:26:57 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-26 00:26:57 +0800
commite83990754f49ec6eba7b9e1a5ff80a6add5de3a1 (patch)
tree6308b4d0afa5bde2de82e7aa034058302cb1d193 /t
parent958a811b18aee04e4795cf003fd8e3db00312c91 (diff)
bugfix & test
Diffstat (limited to 't')
-rw-r--r--t/1.pas18
1 files changed, 5 insertions, 13 deletions
diff --git a/t/1.pas b/t/1.pas
index 0275bbf..ece501e 100644
--- a/t/1.pas
+++ b/t/1.pas
@@ -1,17 +1,9 @@
program a;
-VAR
- f : integer;
- g : real;
- h : boolean;
- j : integer;
-function test(a:integer;b:string):char;
-var s1:real;
+function test(a:integer;b:char;c:real;):integer;
begin
- f:=b;
- g:=c;
- if g<=c then
- h:=ture
- else
- h:=false;
+ a:=1;
+ b:='a';
+ c:=3.5;
+ test:=6;
end;