aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/c_loc_tests_3.f03
blob: 0cd56a684647efaebd2bded11baada833f45b594 (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) ! OK since Fortran 2003, Tech Corrigenda 5; IR F03/0129

end