blob: 9dee0fb10b11725a102703557bcec89b31947891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ %OPT=-Sew }
{$OPTIMIZATION DFA}
{$HINTS ON}
program test;
type
TIntArray = array of Integer;
procedure Reset(var Foo: TIntArray);
begin
SetLength(Foo, 0);
end;
procedure Foo(var Bar: TIntArray);
begin
Reset(Bar); // Hint: Local variable "Bar" does not seem to be initialized
end;
var
Baz: TIntArray;
begin
Foo(Baz); // Hint: Local variable "Baz" does not seem to be initialized
end.
|