Mercurial > projects > dstress
annotate run/t/template_58_D.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 | c41d70e10b6f |
children |
rev | line source |
---|---|
1467
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
2 // $Date$ |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
3 // $Author$ |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
4 |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
5 // @author@ Don Clugston <clugdbug@yahoo.com.au> |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
6 // @date@ 2007-02-02 |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=993 |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 993] No constant folding for template value default arguments |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
9 |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
10 module dstress.run.t.template_58_D; |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
11 |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
12 int a(int b = 7 * 2)(){ |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
13 return b + 1; |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
14 } |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
15 |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
16 int main() { |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
17 if(15 != a()){ |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
18 assert(0); |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
19 } |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
20 return 0; |
c41d70e10b6f
[Issue 993] No constant folding for template value default arguments
thomask
parents:
diff
changeset
|
21 } |