Mercurial > projects > dstress
view nocompile/switch_13.d @ 1510:f0259cabdf78
[Issue 1140] ICE casting tuple member to tuple struct
Don Clugston <clugdbug@yahoo.com.au>
2007-04-03
http://d.puremagic.com/issues/show_bug.cgi?id=1140
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:08:12 +0000 |
parents | 774e02c900da |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn> // @date@ 2004-11-17 // @uri@ news:l3hr62-qov.ln1@kuehne.cn // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2289 // duplicate case "123" in switch statement // __DSTRESS_ELINE__ 22 module dstress.nocompile.switch_13; int main(){ dchar[] array = "123"; switch(array){ case "123":{ assert(0); break; }case "123":{ assert(1); break; }default:{ return -1; // dummy } } }