aboutsummaryrefslogtreecommitdiff
path: root/tests/calls.ek
blob: 0a4c20dc273394f902f8389a1771c349c5e27a00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef some_type {
	add(some_type, some_type => some_type);
}

add(u32 a, u32 b => u32)
{
	return a + b;
}

/* ah fuck, analyze_proc gobbles up the typeof */
some_proc(some_type a, typeof a b => typeof a)
{
	return add(a, b);
}

main()
{
	some_proc(20 as u32, 40 as u32);
}