-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: unsupported melange primitives in OCaml 5
- Loading branch information
1 parent
d40ada3
commit aacc66f
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Demonstrate OCaml 5 primitives that are currently unsupported in Melange | ||
|
||
$ . ./setup.sh | ||
|
||
%perform is an Effects primitive in OCaml 5 | ||
|
||
$ cat > x.ml <<EOF | ||
> type 'a t | ||
> external perform : 'a t -> 'a = "%perform" | ||
> let () = perform (Obj.magic ()) | ||
> EOF | ||
$ melc x.ml | ||
File "x.ml", line 3, characters 9-31: | ||
3 | let () = perform (Obj.magic ()) | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
Error: OCaml 5 multicore primitives (Effect, Condition, Semaphore) are not currently supported in Melange | ||
[2] |