Pattern matching in X86

This commit is contained in:
Dmitry Boulytchev 2018-05-16 16:50:36 +03:00 committed by danyaberezun
parent 9f8391607d
commit bbe403de26
18 changed files with 179 additions and 3 deletions

11
regression/test041.expr Normal file
View file

@ -0,0 +1,11 @@
fun f (a) {
case a of
`a (x, y, z) -> write (x + y + z)
| `b (x, y, z) -> write (x + y + z)
esac
}
x := read ();
f (`a (100, 200, 300));
f (`b (500, 600, 700))