annotate gcc/testsuite/gfortran.dg/c_ptr_tests_5.f03 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 module c_ptr_tests_5
kono
parents:
diff changeset
3 use, intrinsic :: iso_c_binding
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 type, bind(c) :: my_f90_type
kono
parents:
diff changeset
6 integer(c_int) :: i
kono
parents:
diff changeset
7 end type my_f90_type
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 contains
kono
parents:
diff changeset
10 subroutine sub0(c_struct) bind(c)
kono
parents:
diff changeset
11 type(c_ptr), value :: c_struct
kono
parents:
diff changeset
12 type(my_f90_type) :: f90_type
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 call c_f_pointer(c_struct, f90_type) ! { dg-error "must be a pointer" }
kono
parents:
diff changeset
15 end subroutine sub0
kono
parents:
diff changeset
16 end module c_ptr_tests_5