summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/shape_3.f90
blob: ea725a014e952b0ee6cae246ff712cbf55f19ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! PR 34980 - we got a segfault for calling shape
!            with a scalar.
program main
 integer :: n
 n = 5
 open(10,status="scratch")
 write (10,*) shape(n)
 close(10,status="delete")
end