summaryrefslogtreecommitdiff
path: root/tools/quickbook/test/snippets/pass_thru.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/quickbook/test/snippets/pass_thru.cpp')
-rw-r--r--tools/quickbook/test/snippets/pass_thru.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/quickbook/test/snippets/pass_thru.cpp b/tools/quickbook/test/snippets/pass_thru.cpp
new file mode 100644
index 0000000000..4d729d3599
--- /dev/null
+++ b/tools/quickbook/test/snippets/pass_thru.cpp
@@ -0,0 +1,31 @@
+//[foo_cpp_copyright
+/*=============================================================================
+ Copyright (c) 2011 Daniel James
+
+ Use, modification and distribution is subject to the Boost Software
+ License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+ http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
+//]
+
+//[foo_cpp
+struct Foo{
+
+ Foo()//=;
+//<-
+ : x( 10 )
+ {}
+//->
+
+//<-
+ int x;
+//->
+};
+
+/*=
+int main()
+{
+ Foo x;
+}
+*/
+//]