* qwordbool is obviously a 64 bit type, resolves #20889

git-svn-id: trunk@19911 -
This commit is contained in:
florian 2011-12-29 16:46:50 +00:00
parent 0fcb5ae687
commit 61eb25ea30
3 changed files with 21 additions and 1 deletions

1
.gitattributes vendored
View File

@ -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

View File

@ -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
View 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.