PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / system_clock_2.f90
blobf7399afe2d12a8e36aeeec03f0a07d7a77301b74
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
4 integer :: i, j, k
5 integer(kind=8) :: i8, j8, k8
6 real :: x
7 double precision :: z
9 call system_clock(i, j, k)
10 call system_clock(i, j, k8) ! { dg-error "has non-default kind" }
11 call system_clock(i, j8, k) ! { dg-error "has non-default kind" }
12 call system_clock(i8, j, k) ! { dg-error "has non-default kind" }
14 call system_clock(i, x, k) ! { dg-error "Real COUNT_RATE argument" }
16 call system_clock(i, z, k) ! { dg-error "Real COUNT_RATE argument" }
18 end