mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
* qwordbool is obviously a 64 bit type, resolves #20889
git-svn-id: trunk@19911 -
This commit is contained in:
parent
0fcb5ae687
commit
61eb25ea30
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -11975,6 +11975,7 @@ tests/webtbs/tw20836.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw20872a.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw20872b.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw20872c.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw20889.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw2109.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2110.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2128.pp svneol=native#text/plain
|
||||
|
@ -762,7 +762,7 @@ implementation
|
||||
{ true, if def is a 64 bit type }
|
||||
function is_64bit(def : tdef) : boolean;
|
||||
begin
|
||||
is_64bit:=(def.typ=orddef) and (torddef(def).ordtype in [u64bit,s64bit,scurrency])
|
||||
is_64bit:=(def.typ=orddef) and (torddef(def).ordtype in [u64bit,s64bit,scurrency,pasbool64,bool64bit])
|
||||
end;
|
||||
|
||||
|
||||
|
19
tests/webtbs/tw20889.pp
Normal file
19
tests/webtbs/tw20889.pp
Normal file
@ -0,0 +1,19 @@
|
||||
{$APPTYPE CONSOLE}
|
||||
program qwordbool_test_02;
|
||||
//=====================
|
||||
//
|
||||
// Using function which returns QWORDBOOL leads to 'Internal error 200410105' during compile in some usage patterns
|
||||
//
|
||||
// r19740-win32
|
||||
//
|
||||
//=====================
|
||||
// Sample:
|
||||
//
|
||||
function qbool_result(something:integer):qwordbool;
|
||||
begin qbool_result:=(something<>0);
|
||||
end;
|
||||
|
||||
var test:boolean;
|
||||
begin test:=qbool_result(123); //here(17,13) Fatal: Internal error 200410105
|
||||
writeln(test);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user