summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d42
1 files changed, 42 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d b/gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d
new file mode 100644
index 00000000000..349175b0484
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/ddoc_markdown_links.d
@@ -0,0 +1,42 @@
+// PERMUTE_ARGS:
+// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
+// TEST_OUTPUT_FILE: extra-files/ddoc_markdown_links.html
+// OUTPUT_FILES: ${RESULTS_DIR}/compilable/ddoc_markdown_links.html
+
+/++
+# Links
+
+[D Site]: https://dlang.org 'D lives here'
+[unused reference]: https://nowhere.com
+
+A link to [printf].
+
+A link to [the base object][Object].
+
+Not a link because it's an associative array: int[Object].
+
+An inline link to [the D homepage](https://dlang.org).
+
+A reference link to [the **D** homepage][d site].
+
+Not a reference link because it [links to nothing][nonexistent].
+
+A simple link to [dub].
+
+A slightly less simple link to [dub][].
+
+An image: ![D-Man](https://dlang.org/images/d3.png)
+Another image: ![D-Man again][dman-error]
+
+[dub]: <https://code.dlang.org>
+[dman-error]: https://dlang.org/images/dman-error.jpg
+
+$(P
+ [tour]: https://tour.dlang.org
+
+ Here's a [reference to the tour][tour] inside a macro.
+)
++/
+module test.compilable.ddoc_markdown_links;
+
+import core.stdc.stdio;