Mercurial > projects > dstress
view run/b/bug_interpret_96_E.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 2346dc04e49f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Kevin Bealer <kevinbealer@gmail.com> // @date@ 2007-02-18 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=981 // @desc@ [Issue 981] CFTE fails in non-template and functions that takes no args. module dstress.run.b.bug_interpret_96_E; char[] foo(){ return "abc"; } struct S(T){ const char[] x = foo(); } int main(){ S!(int) s; if("abc" != s.x){ assert(0); } return 0; }