OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [default_initialization.f90] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
!
2
! { dg-do compile }
3
! PR 20845
4
!
5
! In ISO/IEC 1539-1:1997(E), 4th constraint in section 11.3:
6
!
7
!   If an object of a type for which component-initialization is specified
8
!   (R429) appears in the specification-part of a module and does not have
9
!   the ALLOCATABLE or POINTER attribute, the object shall have the SAVE
10
!   attribute.
11
!
12
module bad
13
   implicit none
14
   type default_initialization
15
      integer :: x = 42
16
   end type default_initialization
17
   type (default_initialization) t ! { dg-error "default initialization" }
18
end module bad
19
 
20
! { dg-final { cleanup-modules "bad" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.