mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-29 19:13:14 +01:00
[svn r5] Initial commit. Most things are very rough.
This commit is contained in:
17
test/classes.d
Normal file
17
test/classes.d
Normal file
@@ -0,0 +1,17 @@
|
||||
class C
|
||||
{
|
||||
int i;
|
||||
void p()
|
||||
{
|
||||
printf("%d\n", i);
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
printf("should print 4\n");
|
||||
C c = new C;
|
||||
c.i = 4;
|
||||
c.p();
|
||||
//delete c;
|
||||
}
|
||||
Reference in New Issue
Block a user