projects
/
rune.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Rune - Further Object abstraction work
[rune.git]
/
tests
/
lock2.d
1
#!/usr/local/bin/rune -x
2
3
import "sys";
4
import <stdio>;
5
6
class Fubar {
7
const char *a;
8
const char *b;
9
const char *c;
10
}
11
12
int
13
main(int ac, string_p *av)
14
{
15
Fubar x;
16
const char *a = "abc";
17
unlocked const char *b = "def";
18
(const char *c = "ccc", const char *d = "ddd") y;
19
char c;
20
21
c = *y.c;
22
c = *y.d;
23
24
fubar0(a, b);
25
}
26
27
void
28
fubar0(const char *a, const char *b)
29
{
30
char c;
31
32
c = *a;
33
c = *b;
34
}