Mercurial > projects > dstress
annotate run/t/template_24_G.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 60f62efe116d |
children |
rev | line source |
---|---|
794 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Don Clugston <dac@nospam.com.au> | |
6 // @date@ 2006-01-12 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6003 |
794 | 8 |
9 module dstress.run.t.template_24_G; | |
10 | |
11 template whale(char [] walrus){ | |
12 const char [] whale = walrus; | |
13 } | |
14 | |
15 const char[] urchin = whale!("anenome"[0 .. 3]); | |
16 | |
17 int main(){ | |
18 static assert(urchin == "ane"); | |
19 return 0; | |
20 } | |
21 |