repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pointer_check_10.f90
blob
7e445f962d04b252659508a522212b1b03f0a259
1
! { dg-do run }
2
! { dg-options "-fcheck=all -std=f2003 " }
3
! { dg-shouldfail "Pointer actual argument 'ptr' is not associated" }
4
!
5
! PR fortran/49255
6
!
7
! Valid F2008, invalid F95/F2003.
8
!
9
integer
,
pointer
::
ptr
=>
null
()
10
call
foo
(
ptr
)
11
contains
12
subroutine
foo
(
x
)
13
integer
,
optional
::
x
14
if
(
present
(
x
))
STOP
1
15
end subroutine
foo
16
end