projects
/
rune.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Rune - Fix array passing, optimize constant array indices
[rune.git]
/
tests
/
cat.d
1
#!/usr/local/bin/rune -x -d
2
#
3
4
import "sys";
5
import <stdio>;
6
7
alias stdio.File *stdout = stdio.stdout;
8
9
int
10
main(int ac, char **av)
11
{
12
char *line;
13
14
stdout->setmode(M_FULL);
15
16
counter();
17
18
while ((line = stdio.gets()) != line.NULL) {
19
stdio.puts(line);
20
}
21
stdout->fflush();
22
return(0);
23
}
24
25
thread
26
void
27
counter()
28
{
29
int i;
30
31
result;
32
return;
33
# dead code
34
for (i = 0; i < 1000000; ++i)
35
stdout->show(i);
36
}