Debian Codegraph @

gcc/testsuite/gfortran.dg/pr71935.f90

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