Mercurial > projects > dstress
annotate run/t/tuple_20_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 | 85bd7d2ddb7d |
children |
rev | line source |
---|---|
1473
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
2 // $Date$ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
3 // $Author$ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
4 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
5 // @author@ Nick <korslund@gmail.com> |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
6 // @date@ 2007-02-06 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=933 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 933] Literal tuple parameters fails to compile when inout is mentioned |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
9 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
10 module dstress.run.t.tuple_20_B; |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
11 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
12 int x; |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
13 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
14 struct Foo(T...){ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
15 void set(T t){ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
16 x += t[0]; |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
17 } |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
18 } |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
19 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
20 int main(){ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
21 Foo!(int) foo; |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
22 foo.set(5); |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
23 if(5 != x){ |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
24 assert(0); |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
25 } |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
26 |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
27 return 0; |
85bd7d2ddb7d
[Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff
changeset
|
28 } |