modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / intrinsic_shadow_4.f90
blobdf614bb638a0e46c8a8976d3e2737b77c1291cee
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
4 ! PR fortran/54199
6 subroutine test()
7 contains
8 real function fraction(x) ! { dg-warning "'fraction' declared at .1. may shadow the intrinsic of the same name. In order to call the intrinsic, explicit INTRINSIC declarations may be required." }
9 real :: x
10 fraction = x
11 end function fraction
12 end subroutine test