2 ! Structure constructor with component naming.
7 ! Structure of basic data types
15 TYPE(basics_t) :: basics
17 basics = basics_t (42, -1.5, c=(.5, .5), l=.FALSE.)
18 IF (basics%i /= 42 .OR. basics%r /= -1.5 &
19 .OR. basics%c /= (.5, .5) .OR. basics%l) THEN
23 basics = basics_t (r=-1.5, i=42, l=.FALSE., c=(.5, .5))
24 IF (basics%i /= 42 .OR. basics%r /= -1.5 &
25 .OR. basics%c /= (.5, .5) .OR. basics%l) THEN