Mercurial > projects > dil
changeset 651:2a690956cf1c
Moved src/test to src/tests.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 15 Jan 2008 11:40:11 +0100 |
parents | eb490ba8dba0 |
children | b4c9f1cb19c6 |
files | trunk/src/test/forward01.d trunk/src/test/forward02.d trunk/src/test/forward03.d trunk/src/test/forward04.d trunk/src/tests/forward01.d trunk/src/tests/forward02.d trunk/src/tests/forward03.d trunk/src/tests/forward04.d |
diffstat | 8 files changed, 33 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/test/forward01.d Tue Jan 15 11:22:55 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/++ - Author: Jari-Matti Mäkelä -+/ - -// Impossible circular composition. -struct A { B b; } -struct B { A a; }
--- a/trunk/src/test/forward02.d Tue Jan 15 11:22:55 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -/++ - Author: Jari-Matti Mäkelä -+/ - -// Valid circular composition because of pointer. -struct A { B* b; } -struct B { A a; } -// Equivalent to: -struct A { A* a; } - -// Valid circular composition because classes are reference types. -class C { D d; } -class D { C c; }
--- a/trunk/src/test/forward03.d Tue Jan 15 11:22:55 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/++ - Author: Aziz Köksal -+/ - -// Impossible static circular reference. -const x = y; -const y = x;
--- a/trunk/src/test/forward04.d Tue Jan 15 11:22:55 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -/++ - Author: Aziz Köksal -+/ - -class A { auto x = pi; } -mixin("const pi = 3.14;");
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trunk/src/tests/forward01.d Tue Jan 15 11:40:11 2008 +0100 @@ -0,0 +1,7 @@ +/++ + Author: Jari-Matti Mäkelä ++/ + +// Impossible circular composition. +struct A { B b; } +struct B { A a; }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trunk/src/tests/forward02.d Tue Jan 15 11:40:11 2008 +0100 @@ -0,0 +1,13 @@ +/++ + Author: Jari-Matti Mäkelä ++/ + +// Valid circular composition because of pointer. +struct A { B* b; } +struct B { A a; } +// Equivalent to: +struct A { A* a; } + +// Valid circular composition because classes are reference types. +class C { D d; } +class D { C c; }