Add test for dynamically linked global variables (stdout, etc)
[centaur.git] / tests / src / sub_with_global.c
diff --git a/tests/src/sub_with_global.c b/tests/src/sub_with_global.c
new file mode 100644 (file)
index 0000000..bf1fd24
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+void sub_with_global()
+{
+  fprintf(stdout, "sub_with_global() has been reached.\n");
+  fprintf(stdout, "sub_with_global() is returning.\n");
+}