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
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr71935.f90
blob
495759b1f6f2d91d30a0f4e927a98c6f7fd60b42
1
! { dg-do compile }
2
program
p
3
use
iso_c_binding
4
character
(
len
=
1
,
kind
=
c_char
),
parameter
::
z
(
2
) =
'z'
5
print
*,
sizeof
(
z
(
3
))
! { dg-warning "is out of bounds" }
6
print
*,
c_sizeof
(
z
(
3
))
! { dg-warning "is out of bounds" }
7
end