{$ELSEIF} not working in Delphi 2006 ?



Hello,

It seems {$ELSEIF} is not working correctly in Delphi 2006.

Here is some demonstration code:

*** Begin of Code ***

program Test;

{$APPTYPE CONSOLE}

uses
SysUtils;

{$DEFINE C}

begin

{$IFDEF A}
writeln('A');
{$ELSEIF B}
writeln('B');
{$ELSEIF C}
writeln('C');
{$ELSE}
writeln('?');
{$IFEND}

readln;
end.

*** End of Code ***

The output is ?

The output should be C

What's wrong ?

Bye,
Skybuck.


.