Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/random_5.f90 @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-shouldfail "" } ! program trs implicit none integer :: size integer :: seed(50) call test_random_seed(size,seed) contains subroutine test_random_seed(size, put, get) integer, optional :: size integer, dimension(:), optional :: put integer, dimension(:), optional :: get call random_seed(size, put, get) end subroutine test_random_seed end program trs ! { dg-output "Fortran runtime error: RANDOM_SEED should have at most one argument present.*" }