diff options
Diffstat (limited to 'TestPrograms/test_cxx11_sync.cxx')
-rw-r--r-- | TestPrograms/test_cxx11_sync.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TestPrograms/test_cxx11_sync.cxx b/TestPrograms/test_cxx11_sync.cxx new file mode 100644 index 00000000..56076924 --- /dev/null +++ b/TestPrograms/test_cxx11_sync.cxx @@ -0,0 +1,7 @@ +#include <mutex> +int main(int argc, char* argv[]) +{ + static std::mutex m; + std::lock_guard<std::mutex> l(m); + return 0; +} |