6 integer, parameter :: knd
= kind(1.e0
)
8 integer, intent(in
) :: n
9 complex(knd
), intent(in
) :: x(1:n
)
14 y
= [real(x
), aimag(x
)]
15 y
= [real(x(1:n
)), aimag(x(1:n
))]
17 y
= [real(kind
=42) :: 1] { dg
-error
"Invalid type-spec" }
18 y
= [real(kind
=knd
) :: 1]
19 y
= [real(kind
=knd
, a
=1.)]
21 y
= [real(a
=1, kind
=knd
)]