1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/positive/MiniC/PolymorphicAxioms/Input.juvix

26 lines
292 B
Plaintext
Raw Normal View History

module Input;
type Unit :=
unit : Unit;
axiom Action : Type;
compile Action {
c ↦ "int";
};
axiom ignore : {A : Type} -> A -> Action;
compile ignore {
c ↦ "ignore";
};
foreign c {
static int ignore(uintptr_t ptr) { return 0; \}
};
main : Action;
main := ignore unit;
end;