From a9ff9f3fb53dcea1466fb3bd0f86e8024bb924a5 Mon Sep 17 00:00:00 2001
From: "nicolas.marie" <nicolas.marie@ensiie.eu>
Date: Thu, 19 Oct 2023 12:59:16 +0200
Subject: [PATCH] add test to test warning on mpi collective ordering

---
 src/test/test4.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/test/test4.c

diff --git a/src/test/test4.c b/src/test/test4.c
new file mode 100644
index 0000000..969e1be
--- /dev/null
+++ b/src/test/test4.c
@@ -0,0 +1,17 @@
+#include <mpi.h>
+
+
+int main(int argc, char **argv)
+{
+	int c = 0;
+	if(c < 10)
+	{
+		MPI_Init(&argc, &argv);
+		MPI_Barrier(MPI_COMM_WORLD);
+	}
+	else
+	{
+		MPI_Barrier(MPI_COMM_WORLD);
+		MPI_Init(&argc, &argv);
+	}
+}
-- 
GitLab