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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [invalid_interface_assignment.f90] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 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   ! { dg-error "Alternate return cannot appear" }
13
 END INTERFACE
14
CONTAINS
15
  PURE SUBROUTINE set(x1,*)
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.