Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gfortran.dg / itime_idate_2.f
blob11c582dd6eea207e4dde460f97809a61cf6e5de8
1 ! { dg-do run }
2 ! { dg-options "-fdefault-integer-8" }
3 ! Test for ITIME and IDATE intrinsics
4 integer x(3)
5 call itime(x)
6 if (x(1) < 0 .or. x(1) > 23 .or.
7 & x(2) < 0 .or. x(2) > 59 .or.
8 & x(3) < 0 .or. x(3) > 61) call abort
9 call idate(x)
10 if (x(1) < 1 .or. x(1) > 31 .or.
11 & x(2) < 1 .or. x(2) > 12 .or.
12 & x(3) < 2001 .or. x(3) > 2100) call abort
13 end