summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/preprocessor/test/debug.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/preprocessor/test/debug.cxx')
-rw-r--r--src/boost/libs/preprocessor/test/debug.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/boost/libs/preprocessor/test/debug.cxx b/src/boost/libs/preprocessor/test/debug.cxx
new file mode 100644
index 000000000..6c4c5fa74
--- /dev/null
+++ b/src/boost/libs/preprocessor/test/debug.cxx
@@ -0,0 +1,21 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under 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)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/debug.hpp>
+# include <libs/preprocessor/test/test.h>
+
+BEGIN sizeof(BOOST_PP_ASSERT_MSG(0, "text") "") / sizeof(char) != 1 END
+BEGIN sizeof(BOOST_PP_ASSERT_MSG(1, "text") "") / sizeof(char) == 1 END
+
+BOOST_PP_ASSERT(10)
+
+# line BOOST_PP_LINE(100, __FILE__)
+BEGIN __LINE__ == 100 END