Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reorganize cmake directory.
[simgrid.git] / buildtools / Cmake / test_prog / prog_sem_init.c
diff --git a/buildtools/Cmake/test_prog/prog_sem_init.c b/buildtools/Cmake/test_prog/prog_sem_init.c
new file mode 100644 (file)
index 0000000..f4d3038
--- /dev/null
@@ -0,0 +1,13 @@
+/* Copyright (c) 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include <semaphore.h>
+
+void main(void)
+{
+       sem_t s;
+       sem_init(&s);
+}