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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [invalid_interface_assignment.f90] - Blame information for rev 686

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR25102, which did not diagnose the aberrant interface
3
! assignement below.
4
!
5
! Contributed by Joost VandeVondele  
6
!
7
MODULE TT
8
 TYPE data_type
9
   INTEGER :: I
10
 END TYPE data_type
11
 INTERFACE ASSIGNMENT (=)
12
   MODULE PROCEDURE set
13
 END INTERFACE
14
CONTAINS
15
  PURE SUBROUTINE set(x1,*) ! { dg-error "Alternate return cannot appear" }
16
    TYPE(data_type), INTENT(OUT) :: x1
17
    x1%i=0
18
  END SUBROUTINE set
19
END MODULE

powered by: WebSVN 2.1.0

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