2 ! { dg-options "-g -fdec-structure" }
4 ! Test a regression where typespecs of unions containing character buffers of
5 ! different lengths where copied, resulting in a bad gimple tree state.
8 subroutine sub2 (otherbuf
)
9 integer, parameter :: L_bbuf
= 65536
10 integer, parameter :: L_bbuf2
= 24
15 character(L_bbuf2
) sbuf
22 character(L_bbuf
) sbuf
31 record /buffer2
/ otherbuf
35 integer, parameter :: L_bbuf
= 65536
36 integer, parameter :: L_bbuf2
= 24
41 character(L_bbuf2
) sbuf
48 character(L_bbuf
) sbuf
57 call sub2 (buf1
) ! { dg-warning "Type mismatch" }