fpc/tests/tbs/tb0414.pp
2025-01-26 10:53:22 +01:00

46 lines
844 B
ObjectPascal

{ %CPU=m68k }
{ %KNOWNCOMPILEERROR=Obsolete test, kept for reference }
{$error obsolete test, because we do support both HW and softFPU now on all systems }
{ This tests the $E+ compiler
switch. It verifies if the
switch is correctly enabled
depending on the target OS
for m68k.
}
program tb0414;
{$ifdef amiga}
{ Emulation is off by default }
{$ifopt E-}
{$error Emulation is disabled by default for amiga!!}
{$endif}
{$endif}
{$ifdef atari}
{ Emulation is off by default }
{$ifopt E-}
{$error Emulation is disabled by default for amiga!!}
{$endif}
{$endif}
{$ifdef netbsd}
{ Emulation is on by default }
{$ifopt E+}
{$error Emulation is enabled by default for unix!!}
{$endif}
{$endif}
{$ifdef linux}
{ Emulation is on by default }
{$ifopt E+}
{$error Emulation is enabled by default for unix!!}
{$endif}
{$endif}
Begin
End.