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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR25077 in which no diagnostic was produced
3
! for the redefinition of an intrinsic type assignment.
4
!
5
! Contributed by Joost VandeVondele  
6
!
7
MODULE M1
8
 IMPLICIT NONE
9
 INTERFACE ASSIGNMENT(=)
10
  MODULE PROCEDURE T1
11
 END INTERFACE
12
CONTAINS
13
 SUBROUTINE T1(I,J) ! { dg-error "redefine an INTRINSIC type assignment" }
14
   INTEGER, INTENT(OUT)  :: I
15
   INTEGER, INTENT(IN)  :: J
16
   I=-J
17
 END SUBROUTINE T1
18
END MODULE M1
19
! { dg-final { cleanup-modules "m1" } }

powered by: WebSVN 2.1.0

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