Mercurial > projects > dstress
view run/mixin_11.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +0200 |
parents | b8c0195059d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Ben Hinkle <ben.hinkle@gmail.com> // @date@ 2005-04-11 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3619 module dstress.run.mixin_11; int status; template Share(T) { int opEquals(T x){ return status; } } struct List(T){ mixin Share!(List); } int main(){ List!(int) x; List!(int) y; assert(x!=y); status=1; assert(x==y); return 0; }