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
/
heap3.d
1
#!/usr/local/bin/rune -x
2
#
3
4
import "sys";
5
import <stdio>;
6
7
int
8
main(int ac, char **av)
9
{
10
char *ptr;
11
12
ptr = fubar();
13
ptr[23] = 5;
14
ptr = NULL;
15
}
16
17
char *
18
fubar()
19
{
20
heap char buf[8192];
21
22
return buf;
23
}