RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / itime_idate_1.f
blob2705aaeef674a0f458844ed80ba393b43f20b46c
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) STOP 1
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) STOP 2
12 end