Skip to content

Commit dfce12f

Browse files
committed
ompi_fortran_check_ignore_tkr.m4: fix fortran test errors
Fix two bugs in the Fortran test code: 1. Called with "type(*)" instead of "type(*), dimension(*)" 1. Subroutine type was "real" when it should have been "complex" Signed-off-by: Jeff Squyres <[email protected]>
1 parent 89c09f1 commit dfce12f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/ompi_fortran_check_ignore_tkr.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dnl All rights reserved.
1313
dnl Copyright (c) 2007 Los Alamos National Security, LLC. All rights
1414
dnl reserved.
1515
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
16-
dnl Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
16+
dnl Copyright (c) 2009-2022 Cisco Systems, Inc. All rights reserved.
1717
dnl $COPYRIGHT$
1818
dnl
1919
dnl Additional copyrights may follow
@@ -72,7 +72,7 @@ AC_DEFUN([_OMPI_FORTRAN_CHECK_IGNORE_TKR], [
7272

7373
# Vendor-neutral, TYPE(*) syntax
7474
OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB(
75-
[!], [type(*)],
75+
[!], [type(*), dimension(*)],
7676
[TYPE(*), DIMENSION(*)],
7777
[happy=1], [happy=0])
7878

@@ -185,7 +185,7 @@ AC_DEFUN([OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB], [
185185

186186
subroutine force_assumed_shape(a, count)
187187
integer :: count
188-
real, dimension(:,:) :: a
188+
complex, dimension(:,:) :: a
189189
call foo(a, count)
190190
end subroutine force_assumed_shape
191191

0 commit comments

Comments
 (0)