aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/cmake/16 threads/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/cmake/16 threads/main.cpp')
-rw-r--r--meson/test cases/cmake/16 threads/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson/test cases/cmake/16 threads/main.cpp b/meson/test cases/cmake/16 threads/main.cpp
new file mode 100644
index 000000000..67ee110a3
--- /dev/null
+++ b/meson/test cases/cmake/16 threads/main.cpp
@@ -0,0 +1,9 @@
+#include "cmMod.hpp"
+
+#include <cstdlib>
+
+int main() {
+ CmMod cc;
+ cc.asyncIncrement();
+ return cc.getNum() == 1 ? EXIT_SUCCESS : EXIT_FAILURE;
+}