# HG changeset patch # User thomask # Date 1178515197 0 # Node ID 20d8ee6523e1e0f67ab006f0f52e75e6c7ce713c # Parent 345207906be745c1d7fb5a29d4152ce021f7bdd2 updated to DMD-1.013 diff -r 345207906be7 -r 20d8ee6523e1 compile/f/foreach_30_A.d --- a/compile/f/foreach_30_A.d Mon May 07 05:19:35 2007 +0000 +++ b/compile/f/foreach_30_A.d Mon May 07 05:19:57 2007 +0000 @@ -9,7 +9,7 @@ module dstress.compile.f.foreach_30_A; class Collection{ - int opApply(int delegate(inout int) dg){ + int opApply(int delegate(ref int) dg){ return 0; } } diff -r 345207906be7 -r 20d8ee6523e1 compile/f/foreach_30_B.d --- a/compile/f/foreach_30_B.d Mon May 07 05:19:35 2007 +0000 +++ b/compile/f/foreach_30_B.d Mon May 07 05:19:57 2007 +0000 @@ -9,7 +9,7 @@ module dstress.compile.f.foreach_30_B; class Collection{ - int opApply(int delegate(inout int) dg){ + int opApply(int delegate(ref int) dg){ return 0; } } diff -r 345207906be7 -r 20d8ee6523e1 compile/i/inerpret_05_B.d --- a/compile/i/inerpret_05_B.d Mon May 07 05:19:35 2007 +0000 +++ b/compile/i/inerpret_05_B.d Mon May 07 05:19:57 2007 +0000 @@ -9,7 +9,7 @@ module dstress.compile.i.interpret_05_B; -void bar(inout int x){ +void bar(ref int x){ x = 2; } diff -r 345207906be7 -r 20d8ee6523e1 compile/r/return_10_A.d --- a/compile/r/return_10_A.d Mon May 07 05:19:35 2007 +0000 +++ b/compile/r/return_10_A.d Mon May 07 05:19:57 2007 +0000 @@ -10,7 +10,7 @@ module dstress.compile.r.return_10_A; void foo(){ - int nothing( int delegate(inout int) dg ){ + int nothing( int delegate(ref int) dg ){ return 0; } diff -r 345207906be7 -r 20d8ee6523e1 nocompile/b/bug_expression_5981_B.d --- a/nocompile/b/bug_expression_5981_B.d Mon May 07 05:19:35 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Kazuhiro Inaba -// @date@ 2006-12-03 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=641 -// @desc@ [Issue 641] New: Complex string operations in template argument ICEs dmd - -// __DSTRESS_ELINE__ 14 - -module dstress.nocompile.b.bug_expression_5981_B; - -void foo(){ - auto x = ([""]~[])[0]; -} diff -r 345207906be7 -r 20d8ee6523e1 nocompile/bug_20041103_C.d --- a/nocompile/bug_20041103_C.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/bug_20041103_C.d Mon May 07 05:19:57 2007 +0000 @@ -11,7 +11,7 @@ module dstress.nocompile.bug_20041103_C; -char rot13_c(inout char ret){ +char rot13_c(ref char ret){ if(ret > 'A'-1 && ret < 'N'){ ret += 13; }else if(ret > 'M' && ret < 'Z'+1){ diff -r 345207906be7 -r 20d8ee6523e1 nocompile/c/continue_03_A.d --- a/nocompile/c/continue_03_A.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/c/continue_03_A.d Mon May 07 05:19:57 2007 +0000 @@ -13,7 +13,7 @@ module dstress.nocompile.c.continue_03_A; class Stream{ - int opApply(int delegate(inout char[] line) dg){ + int opApply(int delegate(ref char[] line) dg){ } } diff -r 345207906be7 -r 20d8ee6523e1 nocompile/c/continue_03_B.d --- a/nocompile/c/continue_03_B.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/c/continue_03_B.d Mon May 07 05:19:57 2007 +0000 @@ -13,7 +13,7 @@ module dstress.nocompile.c.continue_03_B; class Stream{ - int opApply(int delegate(inout char[] line) dg){ + int opApply(int delegate(ref char[] line) dg){ } } diff -r 345207906be7 -r 20d8ee6523e1 nocompile/cast_10.d --- a/nocompile/cast_10.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/cast_10.d Mon May 07 05:19:57 2007 +0000 @@ -17,7 +17,7 @@ class Child : Parent { } -void test(inout Parent p){ +void test(ref Parent p){ } int main(){ diff -r 345207906be7 -r 20d8ee6523e1 nocompile/i/inout_01.d --- a/nocompile/i/inout_01.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/i/inout_01.d Mon May 07 05:19:57 2007 +0000 @@ -10,7 +10,7 @@ module dstress.nocompile.i.inout_01; -void test(inout byte i){ +void test(ref byte i){ i++; } diff -r 345207906be7 -r 20d8ee6523e1 nocompile/o/opAssign_01_A.d --- a/nocompile/o/opAssign_01_A.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/o/opAssign_01_A.d Mon May 07 05:19:57 2007 +0000 @@ -8,7 +8,7 @@ module dstress.nocompile.o.opAssign_01_A; -void func(inout int[] x){ +void func(ref int[] x){ } void main(){ diff -r 345207906be7 -r 20d8ee6523e1 nocompile/o/opAssign_01_B.d --- a/nocompile/o/opAssign_01_B.d Mon May 07 05:19:35 2007 +0000 +++ b/nocompile/o/opAssign_01_B.d Mon May 07 05:19:57 2007 +0000 @@ -8,7 +8,7 @@ module dstress.nocompile.o.opAssign_01_B; -void func(inout int x){ +void func(ref int x){ } void main(){ diff -r 345207906be7 -r 20d8ee6523e1 run/b/bug_declaration_440_A.d --- a/run/b/bug_declaration_440_A.d Mon May 07 05:19:35 2007 +0000 +++ b/run/b/bug_declaration_440_A.d Mon May 07 05:19:57 2007 +0000 @@ -12,7 +12,7 @@ int[] status; class Container { - int opApply (int delegate (inout int) dg) { + int opApply (int delegate (ref int) dg) { int counter = 3; dg(counter); counter--; diff -r 345207906be7 -r 20d8ee6523e1 run/b/bug_declaration_440_B.d --- a/run/b/bug_declaration_440_B.d Mon May 07 05:19:35 2007 +0000 +++ b/run/b/bug_declaration_440_B.d Mon May 07 05:19:57 2007 +0000 @@ -12,7 +12,7 @@ int[] status; class Container { - int opApply (int delegate (inout int) dg) { + int opApply (int delegate (ref int) dg) { int counter = 3; dg(counter); counter--; diff -r 345207906be7 -r 20d8ee6523e1 run/b/bug_declaration_440_C.d --- a/run/b/bug_declaration_440_C.d Mon May 07 05:19:35 2007 +0000 +++ b/run/b/bug_declaration_440_C.d Mon May 07 05:19:57 2007 +0000 @@ -12,7 +12,7 @@ int[] status; class Container { - int opApply (int delegate (inout int) dg) { + int opApply (int delegate (ref int) dg) { int counter = 3; dg(counter); counter--; diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_A.d --- a/run/c/const_28_A.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_A.d Mon May 07 05:19:57 2007 +0000 @@ -16,7 +16,7 @@ int[arity] data; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_B.d --- a/run/c/const_28_B.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_B.d Mon May 07 05:19:57 2007 +0000 @@ -16,7 +16,7 @@ int[arity] data; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_C.d --- a/run/c/const_28_C.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_C.d Mon May 07 05:19:57 2007 +0000 @@ -16,7 +16,7 @@ int[arity] data; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_D.d --- a/run/c/const_28_D.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_D.d Mon May 07 05:19:57 2007 +0000 @@ -16,7 +16,7 @@ int[arity] data; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_E.d --- a/run/c/const_28_E.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_E.d Mon May 07 05:19:57 2007 +0000 @@ -16,7 +16,7 @@ int[arity] data; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_G.d --- a/run/c/const_28_G.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_G.d Mon May 07 05:19:57 2007 +0000 @@ -16,7 +16,7 @@ int[arity] data = void; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/const_28_H.d --- a/run/c/const_28_H.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/const_28_H.d Mon May 07 05:19:57 2007 +0000 @@ -14,7 +14,7 @@ int[arity] data = void; } -void init(inout Leaf* leaf){ +void init(ref Leaf* leaf){ leaf= new Leaf; } diff -r 345207906be7 -r 20d8ee6523e1 run/c/continue_04_A.d --- a/run/c/continue_04_A.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/continue_04_A.d Mon May 07 05:19:57 2007 +0000 @@ -9,7 +9,7 @@ module dstress.run.c.continue_04_A; struct MyStruct{ - int opApply(int delegate(inout int i) dg){ + int opApply(int delegate(ref int i) dg){ for(int index=0; index < 3; index++){ dg(index); } diff -r 345207906be7 -r 20d8ee6523e1 run/c/continue_04_B.d --- a/run/c/continue_04_B.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/continue_04_B.d Mon May 07 05:19:57 2007 +0000 @@ -9,7 +9,7 @@ module dstress.run.c.continue_04_B; struct MyStruct{ - int opApply(int delegate(inout int i) dg){ + int opApply(int delegate(ref int i) dg){ for(int index=0; index < 3; index++){ dg(index); } diff -r 345207906be7 -r 20d8ee6523e1 run/c/continue_04_E.d --- a/run/c/continue_04_E.d Mon May 07 05:19:35 2007 +0000 +++ b/run/c/continue_04_E.d Mon May 07 05:19:57 2007 +0000 @@ -9,7 +9,7 @@ module dstress.run.c.continue_04_E; struct MyStruct{ - int opApply(int delegate(inout int i) dg){ + int opApply(int delegate(ref int i) dg){ for(int index=0; index < 3; index++){ dg(index); } diff -r 345207906be7 -r 20d8ee6523e1 run/delegate_01.d --- a/run/delegate_01.d Mon May 07 05:19:35 2007 +0000 +++ b/run/delegate_01.d Mon May 07 05:19:57 2007 +0000 @@ -11,7 +11,7 @@ struct List(T){ T[] S; - void bug(void delegate(inout T) f){ + void bug(void delegate(ref T) f){ f(S[0]); } } diff -r 345207906be7 -r 20d8ee6523e1 run/f/for_06_A.d --- a/run/f/for_06_A.d Mon May 07 05:19:35 2007 +0000 +++ b/run/f/for_06_A.d Mon May 07 05:19:57 2007 +0000 @@ -8,7 +8,7 @@ module dstress.run.f.for_06_A; -int foo(inout real[] arr) { +int foo(ref real[] arr) { size_t i = 1; int counter; diff -r 345207906be7 -r 20d8ee6523e1 run/f/for_06_E.d --- a/run/f/for_06_E.d Mon May 07 05:19:35 2007 +0000 +++ b/run/f/for_06_E.d Mon May 07 05:19:57 2007 +0000 @@ -8,7 +8,7 @@ module dstress.run.f.for_06_E; -int foo(inout real[] arr) { +int foo(ref real[] arr) { size_t i = 2; int counter; diff -r 345207906be7 -r 20d8ee6523e1 run/f/for_06_F.d --- a/run/f/for_06_F.d Mon May 07 05:19:35 2007 +0000 +++ b/run/f/for_06_F.d Mon May 07 05:19:57 2007 +0000 @@ -8,7 +8,7 @@ module dstress.run.f.for_06_F; -int foo(inout real[] arr) { +int foo(ref real[] arr) { size_t i = 1; int counter; diff -r 345207906be7 -r 20d8ee6523e1 run/f/for_06_G.d --- a/run/f/for_06_G.d Mon May 07 05:19:35 2007 +0000 +++ b/run/f/for_06_G.d Mon May 07 05:19:57 2007 +0000 @@ -8,7 +8,7 @@ module dstress.run.f.for_06_G; -int foo(inout real[] arr) { +int foo(ref real[] arr) { size_t i = 1; int counter; diff -r 345207906be7 -r 20d8ee6523e1 run/foreach_10.d --- a/run/foreach_10.d Mon May 07 05:19:35 2007 +0000 +++ b/run/foreach_10.d Mon May 07 05:19:57 2007 +0000 @@ -14,7 +14,7 @@ array[2]=8.0; } - int opApply(int delegate(inout double) dg){ + int opApply(int delegate(ref double) dg){ double result; for(int i=0; i