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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [alloc_comp_std.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
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
!
4
! Check that we don't accept allocatable components for -std=f95 (PR 20541)
5
!
6
program main
7
 
8
    type :: foo
9
        integer, allocatable :: bar(:) ! { dg-error "ALLOCATABLE attribute" }
10
 
11
        integer :: x ! Just to avoid "extra" error messages about empty type.
12
    end type foo
13
 
14
end program main

powered by: WebSVN 2.1.0

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