☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.dg
/
pr71935.f90
☽
☼
gcc/testsuite/gfortran.dg/pr71935.f90
code
plain
raw
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