summaryrefslogtreecommitdiff
path: root/test/c/and_block.sail
blob: 84baf492dc7e59dc27ce83a1d78be5ca3a10ee21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
default Order dec

$include <prelude.sail>

val "print" : string -> unit

val main : unit -> unit

function main() = {
  match 432 {
    432 if { (); false } => print("1\n"),
    _ => print("2\n")
  }
}