lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / init_flag_17.f90
blob401830fccbc7715679a944f495c55fb845696738
1 ! { dg-do compile }
2 ! { dg-options "-finit-derived -finit-local-zero -fdump-tree-original" }
4 ! PR fortran/82972
6 ! Make sure we do not ICE when generating initializers for c_ptr and c_funptr
7 ! components of derived types (and make sure they are properly initialized to
8 ! zero).
11 program init_flag_17
12 use iso_c_binding
13 implicit none
15 type :: ty
16 type(c_ptr) :: ptr ! = c_null_ptr
17 type(c_funptr) :: fptr ! = c_null_funptr
18 end type
20 type(ty) :: t
22 print *, t%ptr
23 print *, t%fptr
25 end program
27 ! { dg-final { scan-tree-dump "\.ptr=0" "original" } }
28 ! { dg-final { scan-tree-dump "\.fptr=0" "original" } }