Mercurial > projects > dil
annotate src/tests/forward03.d @ 806:bcb74c9b895c
Moved out files in the trunk folder to the root.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 09 Mar 2008 00:12:19 +0100 |
parents | trunk/src/tests/forward03.d@b4c9f1cb19c6 |
children |
rev | line source |
---|---|
626
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
1 /++ |
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
2 Author: Aziz Köksal |
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
3 +/ |
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
4 |
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
5 // Impossible static circular reference. |
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
6 const x = y; |
50f22f0467e6
Added test case forward03.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
diff
changeset
|
7 const y = x; |
652
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
8 |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
9 // Impossible static circular reference. |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
10 struct A |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
11 { const int a = B.b; } |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
12 struct B |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
13 { const int b = A.a; } |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
14 |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
15 struct C |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
16 { |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
17 const x = C.x; |
b4c9f1cb19c6
Added test forward05.d.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
651
diff
changeset
|
18 } |