annotate run/t/tuple_20_A.d @ 1535:20d8ee6523e1

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:57 +0000
parents 85bd7d2ddb7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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_A;
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
1535
20d8ee6523e1 updated to DMD-1.013
thomask
parents: 1473
diff changeset
19 void get(ref T t){
1473
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
20 x *= t[0];
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
21 }
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
22 }
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
23
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
24 int main(){
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
25 Foo!(int) foo;
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
26 foo.set(5);
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
27 if(5 != x){
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
28 assert(0);
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
29 }
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
30
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
31 return 0;
85bd7d2ddb7d [Issue 933] Literal tuple parameters fails to compile when inout is mentioned
thomask
parents:
diff changeset
32 }