mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-25 17:59:06 +02:00
30 lines
293 B
ObjectPascal
30 lines
293 B
ObjectPascal
{$ifdef fpc}{$mode tp}{$endif}
|
|
unit bug0278;
|
|
|
|
interface
|
|
|
|
{
|
|
a string constant within $IFDEF that
|
|
contains "(*" causes an error;
|
|
compile it with "ppc386 test -So" or "-Sd"
|
|
}
|
|
|
|
var
|
|
c : char;
|
|
|
|
{$IFDEF not_defined}
|
|
const
|
|
c = 'b''(*
|
|
|
|
{ $else}
|
|
|
|
var
|
|
c : char;
|
|
|
|
{$ENDIF}
|
|
|
|
|
|
implementation
|
|
|
|
end.
|