2 ! Structure constructor with default initialization, test that an error is
3 ! emitted for components without default initializer missing value.
8 ! Structure of basic data types
12 COMPLEX :: c = (0., 1.)
15 TYPE(basics_t) :: basics
17 basics = basics_t (i = 42) ! { dg-error "No initializer for component 'r'" }
18 basics = basics_t (42) ! { dg-error "No initializer for component 'r'" }