summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw3898.pp
blob: abcde8bb94c6eb034b60052b4b59688300951694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ Source provided for Free Pascal Bug Report 3898 }
{ Submitted by "alphax" on  2005-04-19 }
{ e-mail: acmui_2004@163.com }
program Project1;

{$APPTYPE CONSOLE}
{$IFDEF FPC}
  {$MODE ObjFpc}
{$ENDIF}

uses
  SysUtils,
  Variants;

var
  DT: TDateTime;
  V: Variant;
begin
  DT := Now();
  V := DT;
  if VarType(V)<>varDate then
    halt(1);
  writeln('ok');
end.