File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
testsuite/tests/typing-local Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -343,4 +343,4 @@ module M : sig type t [@@immediate] end
343
343
type t2 = { x : int ; } [@@ unboxed]
344
344
val f : local_ M .t -> M .t = < fun>
345
345
val 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 =
559
559
if is_principal ty then begin
560
560
match immediacy env ty with
561
561
| 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 ->
563
563
Value_mode. newvar () (* floating and relaxed *)
564
564
| _ -> mode
565
565
end
You can’t perform that action at this time.
0 commit comments