2 ! { dg-options "-fdec-structure" }
4 ! sub0 and sub1 test a regression where calling gfc_use_derived from
5 ! gfc_find_component on the structure type symbol being parsed caused the
6 ! symbol to be freed and swapped for the previously seen type symbol, leaving
7 ! dangling pointers and causing all sorts of mayhem.
31 interface ! matches the declaration of sub0 above
36 integer i
! gfc_find_component should not call gfc_use_derived
37 end map ! here, otherwise this structure's type symbol is freed
38 end union ! out from under it
46 ! If sub0 and sub1 aren't used they may be omitted