mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 06:29:38 +02:00
* fixed for non-Windows (widestring=unicodestring there)
git-svn-id: trunk@16838 -
This commit is contained in:
parent
c1ae618f40
commit
d7010c46e4
@ -7,7 +7,13 @@ uses
|
|||||||
|
|
||||||
// A literal casted to Wide/UnicodeString is expected to be of type vtWideString.
|
// A literal casted to Wide/UnicodeString is expected to be of type vtWideString.
|
||||||
const
|
const
|
||||||
expected: array[0..3] of integer = (vtAnsiString, vtWideString, vtUnicodeString, vtWideString);
|
expected: array[0..3] of integer = (vtAnsiString,
|
||||||
|
{$ifdef windows}
|
||||||
|
vtWideString, vtUnicodeString, vtWideString
|
||||||
|
{$else}
|
||||||
|
vtUnicodeString, vtUnicodeString, vtUnicodeString
|
||||||
|
{$endif}
|
||||||
|
);
|
||||||
|
|
||||||
procedure variantfunc(vars: array of const);
|
procedure variantfunc(vars: array of const);
|
||||||
var
|
var
|
||||||
@ -15,7 +21,7 @@ var
|
|||||||
begin
|
begin
|
||||||
for i := Low(vars) to High(vars) do
|
for i := Low(vars) to High(vars) do
|
||||||
begin
|
begin
|
||||||
writeln('vars[i].VType=',ord(vars[i].VType));
|
writeln('vars[',i,'].VType=',ord(vars[i].VType));
|
||||||
if vars[i].VType <> expected[i] then
|
if vars[i].VType <> expected[i] then
|
||||||
Halt(1);
|
Halt(1);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user