Mercurial > projects > dstress
view run/s/slice_08.d @ 1537:457db9394771
[Issue 1204] segfault using struct in CTFE
Don Clugston <clugdbug@yahoo.com.au>
2007-04-30
http://d.puremagic.com/issues/show_bug.cgi?id=1204
author | thomask |
---|---|
date | Mon, 07 May 2007 05:21:26 +0000 |
parents | 38ea1bb385b6 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.s.slice_08; int main(){ bool[] a; a.length=2; a[] = true; assert(a[0]); assert(a[1]); bool[] b; b.length=2; assert(!b[0]); assert(!b[1]); b[0..1] = a[1..2]; assert(b[0]); assert(!b[1]); return 0; }