OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [entry_7.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 PR20877 and PR25047 are fixed by the patch for
3
! PR24558. Both modules would emit the error:
4
! insert_bbt(): Duplicate key found!
5
! because of the prior references to a module function entry.
6
!
7
! Contributed by Joost VandeVondele  
8
!
9
MODULE TT
10
CONTAINS
11
  FUNCTION K(I) RESULT(J)
12
    ENTRY J() ! { dg-error "conflicts with PROCEDURE attribute" }
13
  END FUNCTION K
14
 
15
  integer function foo ()
16
    character*4 bar ! { dg-error "type CHARACTER" }
17
    foo = 21
18
    return
19
  entry bar ()
20
    bar = "abcd"
21
  end function
22
END MODULE TT
23
 
24
 
25
! { dg-final { cleanup-modules "TT" } }

powered by: WebSVN 2.1.0

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