annotate src/tests/forward02.d @ 839:4063da6f3edd default tip

Refactored the config file and how it is loaded.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 21 Aug 2008 17:51:04 +0200
parents bcb74c9b895c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
625
7949bb4c1618 Added test case forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff changeset
1 /++
7949bb4c1618 Added test case forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff changeset
2 Author: Jari-Matti Mäkelä
7949bb4c1618 Added test case forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff changeset
3 +/
7949bb4c1618 Added test case forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff changeset
4
626
50f22f0467e6 Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 625
diff changeset
5 // Valid circular composition because of pointer.
50f22f0467e6 Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 625
diff changeset
6 struct A { B* b; }
625
7949bb4c1618 Added test case forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff changeset
7 struct B { A a; }
7949bb4c1618 Added test case forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff changeset
8 // Equivalent to:
627
5289f71934cb Added a test case to forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 626
diff changeset
9 struct A { A* a; }
5289f71934cb Added a test case to forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 626
diff changeset
10
5289f71934cb Added a test case to forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 626
diff changeset
11 // Valid circular composition because classes are reference types.
5289f71934cb Added a test case to forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 626
diff changeset
12 class C { D d; }
5289f71934cb Added a test case to forward02.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 626
diff changeset
13 class D { C c; }