2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / itime_idate_1.f
blob618a83f1769d71f4a45d1833eb77a2e5893fa01e
1 ! { dg-do run }
2 ! Test for ITIME and IDATE intrinsics
3 integer x(3)
4 call itime(x)
5 if (x(1) < 0 .or. x(1) > 23 .or.
6 & x(2) < 0 .or. x(2) > 59 .or.
7 & x(3) < 0 .or. x(3) > 61) call abort
8 call idate(x)
9 if (x(1) < 1 .or. x(1) > 31 .or.
10 & x(2) < 1 .or. x(2) > 12 .or.
11 & x(3) < 2001 .or. x(3) > 2100) call abort
12 end