summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0454.pp
blob: 63723cd1fb05a966464e3b7f06aa883576e2fd73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
program tb0454;
{ reported on fpc-devel by Jesus Reyes <jesusrmx@yahoo.com.mx> on 14 July 2003 }
{ as failing with 1.1                                                          }
{$mode objfpc}
var
  a,b: integer;
  c,d,e,f: boolean;

function Ok: boolean;
begin
        result := ( a = b )
                and c = d
                and e = f;
end;

var
        r: boolean;
begin
        a := 1;
        b := 2;
        c := false;
        d := true;
        e := false;
        f := true;

        r := Ok;
        if not r then
          begin
            writeln('error, result should be true');
            halt(1);
          end;
end.