mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:49:18 +02:00
* improve test
This commit is contained in:
parent
b179e01b3f
commit
e7cf7538cd
@ -1,10 +1,12 @@
|
|||||||
{ %norun }
|
|
||||||
var
|
var
|
||||||
b: boolean;
|
b: boolean;
|
||||||
w: word;
|
w: word;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
w := $2;
|
||||||
b := (w shr 1) <> 0;
|
b := (w shr 1) <> 0;
|
||||||
w := w shl 1; // project1.lpr(7,3) Error: Asm: 16 or 32 bit references not supported
|
w := w shl 1; // project1.lpr(7,3) Error: Asm: 16 or 32 bit references not supported
|
||||||
if b then w := w xor 1;
|
if b then w := w xor 1;
|
||||||
|
if w<>5 then
|
||||||
|
halt(1);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user