URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [c_loc_tests_8.f03] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Verifies that the c_loc scalar pointer tests recognize the string of length! greater than one as not being allowable for the parameter to c_loc.module xuse iso_c_bindingcontainsSUBROUTINE glutInit_f03()TYPE(C_PTR), DIMENSION(1), TARGET :: argv=C_NULL_PTRcharacter(kind=c_char, len=5), target :: string="hello"argv(1)=C_LOC(string) ! { dg-error "must have a length of 1" }END SUBROUTINEend module x
