PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / largeequiv_1.f90
blob39b1f815938f1f5d1ff614050d6aeb943aacec81
1 ! { dg-do run }
2 ! PR 20361 : We didn't check if a large equivalence actually fit on
3 ! the stack, and therefore segfaulted at execution time
4 subroutine test
5 integer i(1000000), j
6 equivalence (i(50), j)
8 j = 1
9 if (i(50) /= j) call abort()
10 end subroutine test
12 call test
13 end