summaryrefslogtreecommitdiff
path: root/test/c/tl_pat.sail
blob: 1f535e92d8a2f67fb08f39ec4851e16d919a1027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
default Order dec

val print = "print_endline" : string -> unit

newtype X = X : string

val f : X -> string

function f X(str) = {
  print(str);
  "Test"
}

val main : unit -> unit

function main () = {
  print(f(X("Hello, World")));
}