annotate run/template_10.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 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
223
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
1 // $HeadURL$
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
2 // $Date$
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
3 // $Author$
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
4
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
5 // @author@ Aleksey Bobnev <uw@front.ru>
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
6 // @date@ 2004-12-27
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
7 // @uri@ news:cqp4fk$1dcj$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2613
223
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
9
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
10 module dstress.run.template_10;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
11
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
12 import addon.template_10_typelist;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
13
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
14 template IsArray(T) { static const bool IsArray = false; }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
15 template IsArray(T : T[]) { static const bool IsArray = true; }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
16
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
17 int main(){
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
18 assert(IsArray!(int[])==1);
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
19 assert(IsArray!(int)==0);
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
20 return 0;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
21 }