summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/c_loc_tests_3.f03
blob: 95eac4af380275ef417a310353e76c1ffdeb80d5 (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
use iso_c_binding
implicit none
character(kind=c_char,len=256),target :: arg
type(c_ptr),pointer :: c
c = c_loc(arg) ! { dg-error "must have a length of 1" }

end