RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / warn_target_lifetime_4.f90
blobd2972a922836a79519c62086bbd0a3cb03c44f3b
1 ! { dg-do compile }
2 ! { dg-options "-Wtarget-lifetime" }
4 ! PR fortran/81770: [5/6/7 Regression] Bogus warning: Pointer in pointer assignment might outlive the pointer target
6 ! Contributed by Janus Weil <janus@gcc.gnu.org>
8 module m
10 type t
11 integer, allocatable :: l
12 end type
14 contains
16 subroutine sub(c_in, list)
17 type(t), target, intent(in) :: c_in
18 integer, pointer, intent(out) :: list
20 type(t), pointer :: container
22 container => c_in
24 list => container%l
26 end subroutine
28 end