Debian Codegraph @

gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d

raw
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
3 // TEST_OUTPUT_FILE: extra-files/ddoc_markdown_links.html
4 // OUTPUT_FILES: ${RESULTS_DIR}/compilable/ddoc_markdown_links.html
5
6 /++
7 # Links
8
9 [D Site]: https://dlang.org 'D lives here'
10 [unused reference]: https://nowhere.com
11
12 A link to [printf].
13
14 A link to [the base object][Object].
15
16 Not a link because it's an associative array: int[Object].
17
18 An inline link to [the D homepage](https://dlang.org).
19
20 A reference link to [the **D** homepage][d site].
21
22 Not a reference link because it [links to nothing][nonexistent].
23
24 A simple link to [dub].
25
26 A slightly less simple link to [dub][].
27
28 An image: ![D-Man](https://dlang.org/images/d3.png)
29 Another image: ![D-Man again][dman-error]
30
31 [dub]: <https://code.dlang.org>
32 [dman-error]: https://dlang.org/images/dman-error.jpg
33
34 $(P
35 [tour]: https://tour.dlang.org
36
37 Here's a [reference to the tour][tour] inside a macro.
38 )
39 +/
40 module test.compilable.ddoc_markdown_links;
41
42 import core.stdc.stdio;