1 #!/usr/local/bin/rune -x
8 alias stdio.File *stdout = stdio.stdout;
13 alias int c = a + b + 40 + b + a * 2 + a;
18 main(int ac, char **av)
22 alias int x = f.d + f.d;
26 stdout->show("Size should be 8:", sizeof(Fubar));
27 stdout->show("Size should be 8:", sizeof(*g));
29 stdout->show("y should be 192:", y);
31 stdout->show("x should be 224:", x);
33 stdout->show("y should be 112:", y);
35 stdout->show("y should be 168:", y);
38 stdout->show("Should be 1:", f.a);
39 stdout->show("Should be 2:", f.b);
40 stdout->show("Should be 48:", f.c);
41 stdout->show("Should be 96:", f.d);
42 stdout->show("Should be 192:", x);
43 stdout->show("Should be 1:", g->a);
44 stdout->show("Should be 2:", g->b);
45 stdout->show("Should be 48:", g->c);
46 stdout->show("Should be 96:", g->d);