summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90
blob: 9babbaf1e5d8a60e99bcda25129df215ccf34e97 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do run }
! { dg-options "-std=gnu" }
  integer :: x(9), y(9), t

  t = time()
  call ltime(t,x)
  call gmtime(t,y)
  if (x(1) /= y(1) .or. x(2) /= y(2)) call abort
  end