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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [c_funloc_tests_2.f03] - Blame information for rev 708

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
module c_funloc_tests_2
3
  use, intrinsic :: iso_c_binding, only: c_funptr, c_funloc
4
  implicit none
5
 
6
contains
7
  recursive subroutine sub0() bind(c)
8
    type(c_funptr) :: my_c_funptr
9
    integer :: my_local_variable
10
 
11
    my_c_funptr = c_funloc() ! { dg-error "Missing argument" }
12
    my_c_funptr = c_funloc(sub0)
13
    my_c_funptr = c_funloc(sub0, sub0) ! { dg-error "More actual than formal" }
14
    my_c_funptr = c_funloc(my_local_variable) ! { dg-error "must be a procedure" }
15
  end subroutine sub0
16
end module c_funloc_tests_2

powered by: WebSVN 2.1.0

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