Mercurial > projects > dstress
view run/b/bug_interpret_96_D.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
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_D; char[] foo(){ return "abc"; } struct S{ const char[] x = foo(); } int main(){ S s; if("abc" != s.x){ assert(0); } return 0; }