# HG changeset patch # User thomask # Date 1191145513 0 # Node ID 17cb36e8f9ae778085e020a0d25770cfe866ad48 # Parent 539ede0215a4495e50574b3f4f9950c8a7f42ae9 r8716@birke: tk | 2007-09-30 00:19:01 +0200 [Issue 1533] Crash unknown symbol with std.signals 2007-09-07 http://d.puremagic.com/issues/show_bug.cgi?id=1533 diff -r 539ede0215a4 -r 17cb36e8f9ae nocompile/t/this_16_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/this_16_B.d Sun Sep 30 09:45:13 2007 +0000 @@ -0,0 +1,28 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ +// @date@ 2007-09-07 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1533 +// @desc@ [Issue 1533] Crash unknown symbol with std.signals + +// __DSTRESS_ELINE__ 24 + +module dstress.nocompile.t.this_16_B; + +template T(){ + this(int i){ + check = i; + } + + int check; +} + +class C{ + void foo(){ + bar(); + this.t.check++; + } + mixin T!() t; +} diff -r 539ede0215a4 -r 17cb36e8f9ae nocompile/t/this_16_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/this_16_C.d Sun Sep 30 09:45:13 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ +// @date@ 2007-09-07 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1533 +// @desc@ [Issue 1533] Crash unknown symbol with std.signals + +// __DSTRESS_ELINE__ 20 + +module dstress.nocompile.t.this_16_C; + +template T(){ + int check; +} + +class C{ + void foo(){ + bar(); + this.t.check++; + } + mixin T!() t; +} diff -r 539ede0215a4 -r 17cb36e8f9ae nocompile/t/this_16_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/this_16_D.d Sun Sep 30 09:45:13 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ +// @date@ 2007-09-07 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1533 +// @desc@ [Issue 1533] Crash unknown symbol with std.signals + +// __DSTRESS_ELINE__ 21 + +module dstress.nocompile.t.this_16_D; + +template T(){ + this(){ + } +} + +class C{ + void foo(){ + bar(); + } + mixin T!() t; +} diff -r 539ede0215a4 -r 17cb36e8f9ae run/t/this_16_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/this_16_A.d Sun Sep 30 09:45:13 2007 +0000 @@ -0,0 +1,41 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ +// @date@ 2007-09-07 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1533 +// @desc@ [Issue 1533] Crash unknown symbol with std.signals + +module dstress.run.t.this_16_A; + +template T(){ + this(int i){ + check = i; + } + + int check; +} + +class C{ + void foo(){ + bar(); + this.t.check++; + } + mixin T!() t; + + void bar(){ + this.t.check++; + } +} + +int main(){ + C c = new C(100); + c.foo(); + + if(102 != c.t.check){ + assert(0); + } + + return 0; +}