OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [winapi.f90] - Blame information for rev 484

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run { target *-*-cygwin* *-*-mingw* } }
2
! { dg-options "-lkernel32" }
3
! Test case provided by Dennis Wassel.
4
 
5
PROGRAM winapi
6
 
7
  USE, INTRINSIC :: iso_c_binding
8
  IMPLICIT NONE
9
 
10
  INTERFACE
11
     ! Specifically select the lstrlenA version for ASCII.
12
     FUNCTION lstrlen(string) BIND(C, name = "lstrlenA")
13
       USE, INTRINSIC :: iso_c_binding
14
       IMPLICIT NONE
15
       !GCC$ ATTRIBUTES STDCALL :: lstrlen
16
       INTEGER (C_INT)          :: lstrlen
17
       CHARACTER(KIND=C_CHAR), INTENT(in) :: string(*)
18
     END FUNCTION lstrlen
19
  END INTERFACE
20
 
21
  IF (lstrlen(C_CHAR_"winapi"//C_NULL_CHAR) /= 6) CALL abort()
22
 
23
END PROGRAM winapi

powered by: WebSVN 2.1.0

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