diff options
| author | Thomas Bauereiss | 2018-05-11 12:04:10 +0100 |
|---|---|---|
| committer | Thomas Bauereiss | 2018-05-11 12:04:10 +0100 |
| commit | ff18bac6654a73cedf32a45ee406fe3e74ae3efd (patch) | |
| tree | ed940ea575c93d741c84cd24cd3e029d0a590b81 /doc/examples/overload.sail | |
| parent | 823fe1d82e753add2d54ba010689a81af027ba6d (diff) | |
| parent | db3b6d21c18f4ac516c2554db6890274d2b8292c (diff) | |
Merge branch 'sail2' into cheri-mono
In order to use up-to-date sequential CHERI model for test suite
Diffstat (limited to 'doc/examples/overload.sail')
| -rw-r--r-- | doc/examples/overload.sail | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/examples/overload.sail b/doc/examples/overload.sail new file mode 100644 index 00000000..b6213cdd --- /dev/null +++ b/doc/examples/overload.sail @@ -0,0 +1,10 @@ +val print_int : int -> unit + +val print_string : string -> unit + +overload print = {print_int, print_string} + +function main() : unit -> unit = { + print("Hello, World!"); + print(4) +}
\ No newline at end of file |
