]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/ddoc9475.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / ddoc9475.d
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -w -o- -c -Dd${RESULTS_DIR}/compilable -o-
3 // POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 9475
4
5 module ddoc9475;
6
7 /// foo
8 void foo() { }
9
10 ///
11 unittest
12 {
13 // comment 1
14 foreach (i; 0 .. 10)
15 {
16 // comment 2
17 documentedFunction();
18 }
19 }
20
21 /// bar
22 void bar() { }
23
24 ///
25 unittest
26 {
27 // bar comment
28 }
29