diff options
Diffstat (limited to 'Tests/FindBoost')
-rw-r--r-- | Tests/FindBoost/Test/main.cxx | 24 | ||||
-rw-r--r-- | Tests/FindBoost/TestHeaders/main.cxx | 3 |
2 files changed, 13 insertions, 14 deletions
diff --git a/Tests/FindBoost/Test/main.cxx b/Tests/FindBoost/Test/main.cxx index 0f44f30..6e8b5da 100644 --- a/Tests/FindBoost/Test/main.cxx +++ b/Tests/FindBoost/Test/main.cxx @@ -1,24 +1,22 @@ #include <boost/filesystem.hpp> #include <boost/thread.hpp> -namespace -{ - - boost::mutex m1; - boost::recursive_mutex m2; +namespace { - void - threadmain() - { - boost::lock_guard<boost::mutex> lock1(m1); - boost::lock_guard<boost::recursive_mutex> lock2(m2); +boost::mutex m1; +boost::recursive_mutex m2; - boost::filesystem::path p(boost::filesystem::current_path()); - } +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() { +int main() +{ boost::thread foo(threadmain); foo.join(); diff --git a/Tests/FindBoost/TestHeaders/main.cxx b/Tests/FindBoost/TestHeaders/main.cxx index 0400d6d..7844de4 100644 --- a/Tests/FindBoost/TestHeaders/main.cxx +++ b/Tests/FindBoost/TestHeaders/main.cxx @@ -1,6 +1,7 @@ #include <boost/any.hpp> -int main() { +int main() +{ boost::any a; a = 5; a = std::string("A string"); |