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
2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
allocate_alloc_opt_5.f90
blob
d7e3ea93f1bebc351278690d19dd9928b61d82b2
1
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
program
a
4
5
implicit none
6
7
integer
n
8
character
(
len
=
70
)
str
9
integer
,
allocatable
::
i
(:)
10
11
n
=
42
12
allocate
(
i
(
4
),
source
=
n
)
! { dg-error "Fortran 2003: SOURCE tag" }
13
allocate
(
i
(
4
),
stat
=
n
,
errmsg
=
str
)
! { dg-error "Fortran 2003: ERRMSG tag" }
14
15
end program
a