summaryrefslogtreecommitdiffstats
path: root/Tests/FindBoost/Test/main.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-04 14:54:13 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-12-04 14:54:13 (GMT)
commit65dc4170f858d561144a3c79397f4d2822bae4b6 (patch)
treeb5648ae2b17f08a4cda1cce682fa30eb1c728cea /Tests/FindBoost/Test/main.cxx
parentd4767fca963e97ec2147a343e24ec366cc2646cb (diff)
parentd60cef773659d69ed2fce9b963d788ab422679b9 (diff)
downloadCMake-65dc4170f858d561144a3c79397f4d2822bae4b6.zip
CMake-65dc4170f858d561144a3c79397f4d2822bae4b6.tar.gz
CMake-65dc4170f858d561144a3c79397f4d2822bae4b6.tar.bz2
Merge topic 'FindBoost-imported-targets'
d60cef77 Help: Add notes for topic 'FindBoost-imported-targets.rst' 9fd98750 Tests: Add FindBoost testcase for imported targets 3f9b081f FindBoost: Add imported targets 01c80acd FindBoost: Automatically add missing component dependencies 5183c6e5 FindBoost: Embed component dependency table 8a60e696 Utilities: Add BoostScanDeps script
Diffstat (limited to 'Tests/FindBoost/Test/main.cxx')
-rw-r--r--Tests/FindBoost/Test/main.cxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/FindBoost/Test/main.cxx b/Tests/FindBoost/Test/main.cxx
new file mode 100644
index 0000000..0f44f30
--- /dev/null
+++ b/Tests/FindBoost/Test/main.cxx
@@ -0,0 +1,26 @@
+#include <boost/filesystem.hpp>
+#include <boost/thread.hpp>
+
+namespace
+{
+
+ boost::mutex m1;
+ boost::recursive_mutex m2;
+
+ void
+ threadmain()
+ {
+ boost::lock_guard<boost::mutex> lock1(m1);
+ boost::lock_guard<boost::recursive_mutex> lock2(m2);
+
+ boost::filesystem::path p(boost::filesystem::current_path());
+ }
+
+}
+
+int main() {
+ boost::thread foo(threadmain);
+ foo.join();
+
+ return 0;
+}