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