mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-19 05:03:13 +01:00
[svn r13] * Updated for LLVM 2.1
* Class v-tables are now typesafe * Code cleanups
This commit is contained in:
15
test/classes6.d
Normal file
15
test/classes6.d
Normal file
@@ -0,0 +1,15 @@
|
||||
module classes6;
|
||||
|
||||
class C
|
||||
{
|
||||
void f()
|
||||
{
|
||||
printf("hello world\n");
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
scope c = new C;
|
||||
c.f();
|
||||
}
|
||||
9
test/funcs2.d
Normal file
9
test/funcs2.d
Normal file
@@ -0,0 +1,9 @@
|
||||
module funcs2;
|
||||
|
||||
void func()
|
||||
{
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user