summary refs log tree commit diff
path: root/elf/unload3mod4.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/unload3mod4.c')
-rw-r--r--elf/unload3mod4.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/elf/unload3mod4.c b/elf/unload3mod4.c
new file mode 100644
index 0000000000..52f808e79b
--- /dev/null
+++ b/elf/unload3mod4.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+extern int foo (int x);
+
+int
+bar (int x)
+{
+  puts ("bar");
+  fflush (stdout);
+  x = foo (x - 4);
+  puts ("bar after foo");
+  return x;
+}