[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / bounds_check_18.f90
blobafd0503ef10cf254d4617000d5a017cd19373745
1 ! { dg-do compile }
2 program main
3 implicit none
4 integer :: n
5 real, dimension(10) :: a
6 n = 0
7 call random_number(a)
8 if (any(a(n+1:n+5) > [1.0, 2.0, 3.0])) print *,"Hello!" ! { dg-error "not conformable" }
9 end program main