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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [alloc_comp_initializer_2.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Check that default initializer for allocatable components isn't accepted (PR
3
! 20541)
4
program main
5
 
6
    type :: foo
7
        integer, allocatable :: a(:) = [ 1 ] ! { dg-error "Initialization of allocatable" }
8
 
9
        integer :: x ! Just to avoid "extra" error messages about empty type.
10
    end type foo
11
 
12
end program main

powered by: WebSVN 2.1.0

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