blob: 5c623ec87f4800e065e187641946d54e6bd34c14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use std
/* checks that calls with large return values (ie, ones that don't fit in a
* register) works correctly. Should exit with 42. */
type pair = struct
a : int
b : int
;;
const f = {s
-> s.a + s.b
}
const main = {
var s : pair
s.a = 12
s.b = 30
std.exit(f(s))
}
|