2 ! { dg-options "-O3 -fdump-tree-original" }
3 ! PR 61968 - this used to generate invalid assembler containing
7 use iso_c_binding
, only
: c_size_t
, c_int32_t
, c_int64_t
12 procedure
:: test_array
16 subroutine test_lib (a
, len
) bind(C
, name
="xxx")
17 use iso_c_binding
, only
: c_size_t
18 type(*), dimension(*) :: a
19 integer(c_size_t
), value
:: len
25 subroutine test_32 (a
, len
)
26 type(*), dimension(*) :: a
27 integer(c_int32_t
), value
:: len
28 call test_lib (a
, int (len
, kind
=c_size_t
))
31 subroutine test_array (a
)
32 use iso_c_binding
, only
: c_size_t
33 class(*), dimension(..), target
:: a
36 call test_lib (a
, int (sizeof (a
), kind
=c_size_t
))
42 subroutine test_32_ (a
, len
)
43 use iso_c_binding
, only
: c_int32_t
45 type(*), dimension(*) :: a
46 integer(c_int32_t
), value
:: len
49 ! { dg-final { scan-tree-dump-not "! __vtype_TYPE\\(*\\)" "original" } }