| 1 |
! { dg-do compile } |
| 2 |
! |
| 3 |
! TS 29113 |
| 4 |
! 5.3 ALLOCATABLE, OPTIONAL, and POINTER attributes |
| 5 |
! The ALLOCATABLE, OPTIONAL, and POINTER attributes may be specified |
| 6 |
! for a dummy argument in a procedure interface that has the BIND |
| 7 |
! attribute. |
| 8 |
|
| 9 |
subroutine test (a, b, c) |
| 10 |
integer, allocatable :: a |
| 11 |
integer, optional :: b |
| 12 |
integer, pointer :: c |
| 13 |
|
| 14 |
interface |
| 15 |
subroutine ctest (aa, bb, cc) bind (c) |
| 16 |
integer, allocatable :: aa |
| 17 |
integer, optional :: bb |
| 18 |
integer, pointer :: cc |
| 19 |
end subroutine |
| 20 |
end interface |
| 21 |
|
| 22 |
call ctest (a, b, c) |
| 23 |
end subroutine |