blob: bbc85eccaa9e68a06f8ceeddd48967702c81308c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
namespace;
include rt;
int first(const fixed int[2] values) { return values[0]; }
fn main() {
const fixed int[2] a = {7, 8};
fixed const int[2] b = {2, 3};
fixed int[2] c = {5, 6};
int copy = a[0];
copy++;
rt.put_n(first(a)); rt.put_c(32);
rt.put_n(first(b)); rt.put_c(32);
rt.put_n(first(c)); rt.put_c(32);
rt.put_n(copy); rt.put_c(10);
}
|