PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / random_6.f90
blob078c8af01f5472f90e447d53b7a00288654f1bd3
1 ! { dg-do compile }
3 subroutine test1 (size, put, get)
4 integer :: size
5 integer, dimension(:), optional :: put
6 integer, dimension(:), optional :: get
7 call random_seed(size, put, get)
8 end
10 subroutine test2 (size, put, get)
11 integer, optional :: size
12 integer, dimension(:) :: put
13 integer, dimension(:) :: get
14 call random_seed(size, put, get) ! { dg-error "Too many arguments" }
15 end