Debian Codegraph @

gcc/testsuite/gfortran.dg/pr93832.f90

raw
1 module m
2 contains
3 subroutine comment0
4 type t
5 character :: a
6 integer :: b
7 integer :: c(t(1)) ! { dg-error "No initializer for component .b." }
8 end type
9 type(t) :: z = t('a', 2, [3]) ! { dg-error "Bad array spec of component .c." }
10 end
11
12 subroutine comment3a
13 type t
14 character :: a
15 integer :: b
16 integer :: c(t(1, "rubbish")) ! { dg-error "No initializer for component .c." }
17 end type
18 type(t) :: z = t('a', 2, [3]) ! { dg-error "Bad array spec of component .c." }
19 end
20
21 subroutine comment3b
22 type t
23 character :: a
24 integer :: b
25 integer :: c(t(1, "rubbish", [7])) ! { dg-error "Derived type or class expression" }
26 end type
27 type(t) :: z = t('a', 2, [3]) ! { dg-error "Bad array spec of component .c." }
28 end
29
30 subroutine comment9
31 type t
32 character :: a
33 integer :: b(t(1)) ! { dg-error "No initializer for component .b." }
34 end type
35 type(t) :: x = t('a', 2)
36 end
37 end module