Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/selected_real_kind_1.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/44347 - arguments of SELECTED_REAL_KIND shall be scalar ! Testcase contributed by Vittorio Zecca <zeccav AT gmail DOT com> ! dimension ip(1), ir(1) i = selected_real_kind(ip, i) ! { dg-error "must be a scalar" } j = selected_real_kind(i, ir) ! { dg-error "must be a scalar" } end