aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/names.zc
blob: e5b9d4b5e2032860d5240155be7de7aea41b0cc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
namespace;
include rt;

fn f(d) { let u = 3, m = 4; if (d > 0) return u + m + d; return 0; }
fn dmul(d) { return d * 4; }
fn main() {
	let u = 1;
	rt.put_n(f(5)); rt.put_c(' ');
	rt.put_n(u); rt.put_c(' ');
	rt.put_n(dmul(2)); rt.put_c(10);
	return 0;
}