2 ! this is to simply test that the various ways the use statement can
3 ! appear are handled by the compiler, since i did a special treatment
4 ! of the intrinsic iso_c_binding module. note: if the user doesn't
5 ! provide the 'intrinsic' keyword, the compiler will check for a user
6 ! provided module by the name of iso_c_binding before using the
7 ! intrinsic one. --Rickett, 09.26.06
9 ! this is an error because c_ptr_2 does not exist
10 use, intrinsic :: iso_c_binding
, only
: c_ptr_2
! { dg-error "Symbol 'c_ptr_2' referenced at \\(1\\) not found" }
14 ! this is an error because c_ptr_2 does not exist
15 use iso_c_binding
, only
: c_ptr_2
! { dg-error "Symbol 'c_ptr_2' referenced at \\(1\\) not found" }
20 use, intrinsic :: iso_c_binding
, only
: c_ptr
25 use iso_c_binding
, only
: c_ptr
30 use, intrinsic :: iso_c_binding
39 ! hmm, is this an error? if so, it's not being caught...
41 use, intrinsic :: iso_c_binding
, only
: c_int
, c_int
45 ! hmm, is this an error? if so, it's not being caught...
47 use iso_c_binding
, only
: c_int
, c_int
50 ! { dg-final { cleanup-modules "use_stmt_2 use_stmt_3 use_stmt_4 use_stmt_5 use_stmt_6 use_stmt_7" } }