c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr110996.f90
blob0e7551059a30d203dff9c70791580cdce323ff8b
1 ! { dg-do compile }
3 ! PR fortran/110996
4 ! This example used to result in memory errors and sometimes internal compiler
5 ! errors, because the rejection of the subroutine statement was causing the
6 ! symbol D to be freed without also freeing the symbol C which remained in the
7 ! namespace with a dangling pointer to D.
9 ! Original testcase from Jeremy Bennett <jeremy.bennett@embecosm.com>
11 PROGRAM p
12 CONTAINS
13 SUBROUTINE c(d) e { dg-error "Syntax error" }
14 SUBROUTINE f
15 END
16 END