summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/config/test/threads
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/config/test/threads')
-rw-r--r--src/boost/libs/config/test/threads/test_thread_fail1.cpp10
-rw-r--r--src/boost/libs/config/test/threads/test_thread_fail2.cpp13
2 files changed, 23 insertions, 0 deletions
diff --git a/src/boost/libs/config/test/threads/test_thread_fail1.cpp b/src/boost/libs/config/test/threads/test_thread_fail1.cpp
new file mode 100644
index 00000000..5e0406bb
--- /dev/null
+++ b/src/boost/libs/config/test/threads/test_thread_fail1.cpp
@@ -0,0 +1,10 @@
+// (C) Copyright John Maddock 2003.
+// Use, modification and distribution are 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)
+
+// disable thread support:
+#define BOOST_DISABLE_THREADS
+// this should now be a compiler error:
+#include <boost/config/requires_threads.hpp>
+// we should never get here...
diff --git a/src/boost/libs/config/test/threads/test_thread_fail2.cpp b/src/boost/libs/config/test/threads/test_thread_fail2.cpp
new file mode 100644
index 00000000..56ba4a07
--- /dev/null
+++ b/src/boost/libs/config/test/threads/test_thread_fail2.cpp
@@ -0,0 +1,13 @@
+// (C) Copyright John Maddock 2003.
+// Use, modification and distribution are 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)
+
+#include <boost/config.hpp>
+// disable thread support:
+#ifdef BOOST_HAS_THREADS
+# undef BOOST_HAS_THREADS
+#endif
+// this should now be a compiler error:
+#include <boost/config/requires_threads.hpp>
+// we should never get here...