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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
module mod_interf_abstract
4
implicit none
5
abstract interface :: one ! { dg-error "Syntax error in ABSTRACT INTERFACE statement" }
6
end interface ! { dg-error "Expecting END MODULE statement" }
7
 
8
abstract interface
9
  subroutine two() bind(C)
10
  end subroutine two
11
  subroutine three() bind(C,name="three") ! { dg-error "NAME not allowed on BIND.C. for ABSTRACT INTERFACE" }
12
  end subroutine three ! { dg-error "Expecting END INTERFACE statement" }
13
  subroutine real() ! { dg-error "cannot be the same as an intrinsic type" }
14
  end subroutine real
15
end interface
16
 
17
contains
18
 
19
  subroutine sub() bind(C,name="subC")
20
  end subroutine
21
 
22
end module mod_interf_abstract

powered by: WebSVN 2.1.0

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