annotate gcc/testsuite/gfortran.dg/alloc_comp_initializer_2.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! Check that default initializer for allocatable components isn't accepted (PR
kono
parents:
diff changeset
3 ! 20541)
kono
parents:
diff changeset
4 program main
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 type :: foo
kono
parents:
diff changeset
7 integer, allocatable :: a(:) = [ 1 ] ! { dg-error "Initialization of allocatable" }
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 integer :: x ! Just to avoid "extra" error messages about empty type.
kono
parents:
diff changeset
10 end type foo
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 end program main