summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0476.pp
blob: 3fe585d4e5432d2dc7e4d1ceed5a57bd6bdbb15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
  e = 'as';

procedure p(const p);
  begin
    if pchar(@p)^<>'a' then
      begin
        writeln('error');
        halt(1);
      end;
  end;

begin
  p(e[1]);
end.