File tree Expand file tree Collapse file tree
testsuite/tests/typing-local Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -343,4 +343,4 @@ module M : sig type t [@@immediate] end
343343type t2 = { x : int ; } [@@ unboxed]
344344val f : local_ M .t -> M .t = < fun>
345345val f : local_ t2 -> t2 = < fun>
346- |}]
346+ |}]
Original file line number Diff line number Diff line change 1+ (* TEST
2+ * arch64
3+ ** expect *)
4+
5+ (* Mode crossing works on immediate64 types *)
6+ module F (M : sig type t [@@immediate64] end ) = struct
7+ let f : local_ M.t -> _ = fun t -> t
8+ end
9+
10+ [%% expect{|
11+ module F :
12+ functor (M : sig type t [@@immediate64] end ) ->
13+ sig val f : local_ M .t -> M .t end
14+ | }]
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ let mode_cross env (ty : type_expr) mode =
559559 if is_principal ty then begin
560560 match immediacy env ty with
561561 | Type_immediacy. Always -> Value_mode. newvar ()
562- | Type_immediacy. Always_on_64bits when ! Clflags. native_code && Sys. word_size = 64 ->
562+ | Type_immediacy. Always_on_64bits when Sys. word_size = 64 ->
563563 Value_mode. newvar () (* floating and relaxed *)
564564 | _ -> mode
565565 end
You can’t perform that action at this time.
0 commit comments