[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / itime_idate_2.f
blob8e3d30c3c900f8bcb17941ff37726f38efb08f8c
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) STOP 1
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) STOP 2
13 end