URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [binding_label_tests_3.f03] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }program mainuse iso_c_bindinginterfacesubroutine p1(f, a1, a2, a3, a4) bind(c, name='printf') ! { dg-error "collides" }import :: c_ptr, c_int, c_doubletype(c_ptr), value :: finteger(c_int), value :: a1, a3real(c_double), value :: a2, a4end subroutine p1subroutine p2(f, a1, a2, a3, a4) bind(c, name='printf') ! { dg-error "collides" }import :: c_ptr, c_int, c_doubletype(c_ptr), value :: freal(c_double), value :: a1, a3integer(c_int), value :: a2, a4end subroutine p2end interfacetype(c_ptr) :: f_ptrcharacter(len=20), target :: formatf_ptr = c_loc(format(1:1))format = 'Hello %d %f %d %f\n' // char(0)call p1(f_ptr, 10, 1.23d0, 20, 2.46d0)format = 'World %f %d %f %d\n' // char(0)call p2(f_ptr, 1.23d0, 10, 2.46d0, 20)end program main
