2 ! { dg-options "-fbounds-check" }
6 ! Array constructor with typespec and dynamic
10 CALL foo(8, "short", "short")
11 CALL foo(2, "lenghty", "le")
13 SUBROUTINE foo (n, s, shouldBe)
15 CHARACTER(len=*) :: shouldBe
16 CHARACTER(len=16) :: arr(2)
18 arr = [ character(len=n) :: s, s ]
19 IF (arr(1) /= shouldBe .OR. arr(2) /= shouldBe) THEN