Mercurial > projects > dstress
view compile/t/template_35_C.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 | 1e495c60b3cd |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Li Jie <cpunion@gmail.com> // @date@ 2006-04-11 // @uri@ news:e1fa64$17nq$1@digitaldaemon.com module dstress.compile.t.template_35_C; template foo(char[] str){ const char foo = bar!((str[1])); } template bar(char c){ const char bar = c; } static assert(foo!("abc") == 'b');