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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [host_assoc_types_1.f90] - Blame information for rev 704

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR29232, in which the invalid code below was not
3
! diagnosed.
4
!
5
! Contributed by Tobias Burnus  
6
!
7
MODULE test
8
     TYPE vertex
9
           INTEGER :: k
10
     END TYPE vertex
11
CONTAINS
12
     SUBROUTINE S1()
13
         TYPE(vertex) :: a  ! { dg-error "cannot be host associated" }
14
         vertex : DO i=1,2  ! { dg-error "incompatible object of the same name" }
15
         ENDDO vertex
16
     END SUBROUTINE
17
END MODULE test
18
! { dg-final { cleanup-modules "test" } }

powered by: WebSVN 2.1.0

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