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
/
gconstruct.d
1
#!/usr/local/bin/rune -x
2
#
3
# Check code generation for global constructor
4
#
5
import "sys";
6
import <stdio>;
7
8
class Fubar {
9
global int gx = 1;
10
int gy;
11
12
global constructor method void blah1()
13
{
14
this.gx = 2;
15
}
16
}
17
18
Fubar fubar;
19
20
int
21
main()
22
{
23
stdio.stdout->show(Fubar.gx);
24
}