Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/system_clock_2.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! { dg-options "-std=f95" } | |
3 | |
4 integer :: i, j, k | |
5 integer(kind=8) :: i8, j8, k8 | |
6 real :: x | |
7 double precision :: z | |
8 | |
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" } | |
13 | |
14 call system_clock(i, x, k) ! { dg-error "Real COUNT_RATE argument" } | |
15 | |
16 call system_clock(i, z, k) ! { dg-error "Real COUNT_RATE argument" } | |
17 | |
18 end |