diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/quickbook/test/code_cpp-1_5.gold-html | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/tools/quickbook/test/code_cpp-1_5.gold-html')
-rw-r--r-- | src/boost/tools/quickbook/test/code_cpp-1_5.gold-html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/boost/tools/quickbook/test/code_cpp-1_5.gold-html b/src/boost/tools/quickbook/test/code_cpp-1_5.gold-html new file mode 100644 index 000000000..9fd45cd28 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_cpp-1_5.gold-html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <h3> + C++ Code Blocks + </h3> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">some_header</span><span class="special">></span> + <span class="preprocessor">#include</span> <span class="string">"another_header.hpp"</span> +<span class="preprocessor"># define</span> <span class="identifier">A_MACRO</span> <span class="identifier">value</span> +<span class="preprocessor">#define</span> <span class="identifier">stringize</span><span class="special">(</span><span class="identifier">hello</span><span class="special">)</span> <span class="special">#</span><span class="identifier">hello</span> +<span class="comment">// No escape</span> +<span class="comment">/* No escape */</span> +<span class="comment">/* No escape + * with newlines + */</span> +<span class="comment">// In Header: <<a href="http://www.boost.org/doc/libs/release/boost/optional/optional.hpp">boost/optional/optional.hpp</a>></span> +<span class="comment">/* In Header: <<a href="http://www.boost.org/doc/libs/release/boost/optional/optional.hpp">boost/optional/optional.hpp</a>> */</span> +<span class="comment">/* Multiple escapes: <span class="emphasis"><em>italic</em></span> + * <span class="underline">underline</span><span class="bold"><strong>bold</strong></span> + */</span> +<span class="comment">/* Token pasting: */</span> <span class="identifier">a</span><span class="special">##</span><span class="identifier">b</span> +</pre> + <p> + A badly formed comment: + </p> +<pre class="programlisting"><span class="comment">/* Oh dear +</span></pre> + <p> + A badly formed comment with an escape: + </p> +<pre class="programlisting"><span class="comment">/* Oh dear <span class="bold"><strong>bold</strong></span> +</span></pre> + <p> + Just some code: + </p> +<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> <span class="special">{</span> + <span class="keyword">constexpr</span> <span class="keyword">char32_t</span> <span class="identifier">x</span> <span class="special">=</span> <span class="char">'a'</span><span class="special">;</span> + <span class="keyword">const</span> <span class="keyword">auto</span> <span class="identifier">y</span> <span class="special">=</span> <span class="identifier">x</span> <span class="special">-</span> <span class="char">' '</span><span class="special">;</span> +<span class="special">}</span> +</pre> + </body> +</html> |