about summary refs log tree commit diff
path: root/elf/tst-piemod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-piemod1.c')
-rw-r--r--elf/tst-piemod1.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/elf/tst-piemod1.c b/elf/tst-piemod1.c
new file mode 100644
index 0000000000..ad439da800
--- /dev/null
+++ b/elf/tst-piemod1.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+
+int
+foo (void)
+{
+  return 21;
+}
+
+int
+main (void)
+{
+  int val = foo ();
+  if (val != 34)
+    {
+      printf ("foo () returned %d\n", val);
+      return 1;
+    }
+
+  return 0;
+}