Mercurial > projects > dstress
annotate compile/t/tuple_21_B.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 | 5100b74e1aa3 |
children |
rev | line source |
---|---|
1484 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Daniel <Daniel919@web.de> | |
6 // @date@ 2007-02-07 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=938 | |
8 // @desc@ [Issue 938] struct with Tuple | |
9 | |
10 module dstress.compile.t.tuple_21_B; | |
11 | |
12 template removeSpace(char[] s, int x = 0) { | |
13 static if (s[0] == ' '){ | |
14 alias removeSpace!(s[1..$], x+1) removeSpace; | |
15 }else{ | |
16 alias s removeSpace; | |
17 } | |
18 } | |
19 | |
20 static assert("Hello you !" == removeSpace!(" Hello you !")); |