[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocated_2.f90
blob0ea186a4d13581dbb6f9d87bb7766480d2528e17
1 ! { dg-do compile }
2 program foo
4 implicit none
6 integer, allocatable :: x
7 integer, allocatable :: a(:)
9 logical a1, a2
11 a1 = allocated(scalar=a) ! { dg-error "Scalar entity required" }
12 a2 = allocated(array=x) ! { dg-error "Array entity required" }
13 a1 = allocated(scalar=x, array=a) ! { dg-error "Too many arguments" }
14 a1 = allocated(array=a, scalar=x) ! { dg-error "Too many arguments" }
16 end program foo