d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / ddoc1.d
blob0a27eda26e5e7cbe9a5a320ee722e89f46e1e999
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
3 // POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
4 // REQUIRED_ARGS: -d
6 /** This module is for ABC
7 * Copyright: Copyright ©
8 */
10 module abc;
12 string foos = "foo";
14 alias int myint; ///
15 alias int mytypedefint;
17 /** windy
18 * city
20 * paragraph 2 about of F $$(NAME)
21 * -----
22 * #include <stdio.h>
23 * void main()
24 * {
25 * printf("hello\n");
26 * }
27 * -----
28 * Copyright: 1998
30 myint f;
31 enum E { e } /// comment1
32 int g; /// comment2
33 private int h; /// comment for H
34 static int i;
35 int j;
36 wchar LS = 0x2028; /// UTF line separator
37 wchar PS = 0x2029; /// UTF paragraph separator
39 wchar _XX; /// ditto
40 wchar YY; /// ditto
42 /** Function foo takes argument c and adds it to argulid.
44 * Then it munges argulid, u <u>underline</u>. <!-- c, argulid, b -->
45 * Params:
46 * c = the character which adds c to argulid
47 * argulid = the argument
48 * u = the other argument
50 int foo(char c, int argulid, char u = '\'', wchar v = '\u7233', dchar y = '\U00017233');
52 int barr() { return 3; } /// doc for barr()
54 /++ The Class Bar +/
55 class Bar
57 int x; /// member X
58 int y; /// member Y
59 protected int z; /// member Z
62 /++ The Enum Easy +/
64 enum Easy : int
66 red, /// the Red
67 blue, /// the Blue
68 green, /// the Green