summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/putsmainsubglobal.c13
-rw-r--r--tests/src/sub_with_global.c7
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/putsmainsubglobal.c b/tests/src/putsmainsubglobal.c
new file mode 100644
index 0000000..531320d
--- /dev/null
+++ b/tests/src/putsmainsubglobal.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+void sub()
+{
+ fprintf(stdout, "sub() called.\n");
+}
+
+int main()
+{
+ sub();
+
+ return 0;
+}
diff --git a/tests/src/sub_with_global.c b/tests/src/sub_with_global.c
new file mode 100644
index 0000000..bf1fd24
--- /dev/null
+++ b/tests/src/sub_with_global.c
@@ -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");
+}