annotate run/const_18.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 b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
1 // $HeadURL$
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
2 // $Date$
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
3 // $URL$
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
4
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
5 // @author@ no@where.com
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
6 // @date@ 2005-04-24
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 481
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3797
481
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
8
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
9 module dstress.run.const_18;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
10
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
11 const int c = b * b;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
12 const int a = 1;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
13 const int b = a * 3;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
14
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
15 template T(int n){
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
16 int[n] x;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
17 }
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
18
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
19 mixin T!(c);
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
20
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
21 int main(){
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
22 assert(x.length==9);
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
23 return 0;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
24 }