quickbook/test/code_cpp-1_5.quickbook
Daniel James 7e76b65ed8 C++11 keywords. Refs #8541.
[SVN r84152]
2013-05-05 13:46:57 +00:00

35 lines
766 B
Plaintext

[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 - ' ';
}