mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:00:28 +02:00
* more fun testing for emulation $E switch.
This commit is contained in:
parent
4ff94d240d
commit
29497cbed0
41
tests/tbs/tb0414.pp
Normal file
41
tests/tbs/tb0414.pp
Normal file
@ -0,0 +1,41 @@
|
||||
{ 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.
|
Loading…
Reference in New Issue
Block a user