blob: f771f9a2ea63980baabb6dc6130b402ee93680de (
plain)
1
2
3
4
5
6
7
8
9
10
|
! { 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
|