mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-06 04:13:17 +01:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
24
tests/mini/debug12.d
Normal file
24
tests/mini/debug12.d
Normal file
@@ -0,0 +1,24 @@
|
||||
module tangotests.debug12;
|
||||
|
||||
interface I
|
||||
{
|
||||
int foo();
|
||||
}
|
||||
|
||||
class C : I
|
||||
{
|
||||
int i = 24;
|
||||
int foo()
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
scope c = new C;
|
||||
I i = c;
|
||||
|
||||
int* fail;
|
||||
*fail = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user