summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/tools/quickbook/test/code_cpp-1_5.quickbook')
-rw-r--r--src/boost/tools/quickbook/test/code_cpp-1_5.quickbook34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook b/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook
new file mode 100644
index 00000000..fdaa926b
--- /dev/null
+++ b/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook
@@ -0,0 +1,34 @@
+[article C++ Code Blocks
+[quickbook 1.5]
+]
+
+ #include <some_header>
+ #include "another_header.hpp"
+ # define A_MACRO value
+ #define stringize(hello) #hello
+ // No escape
+ /* No escape */
+ /* No escape
+ * with newlines
+ */
+ // In Header: <``[@boost:/boost/optional/optional.hpp boost/optional/optional.hpp]``>
+ /* In Header: <``[@boost:/boost/optional/optional.hpp boost/optional/optional.hpp]``> */
+ /* Multiple escapes: ``/italic/``
+ * ``_underline_````*bold*``
+ */
+ /* Token pasting: */ a##b
+
+A badly formed comment:
+
+ /* Oh dear
+
+A badly formed comment with an escape:
+
+ /* Oh dear ``*bold*``
+
+Just some code:
+
+ int main() {
+ constexpr char32_t x = 'a';
+ const auto y = x - ' ';
+ }