aboutsummaryrefslogtreecommitdiff
path: root/REORG.TODO/elf/tst-piemod1.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/elf/tst-piemod1.c')
-rw-r--r--REORG.TODO/elf/tst-piemod1.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/REORG.TODO/elf/tst-piemod1.c b/REORG.TODO/elf/tst-piemod1.c
new file mode 100644
index 0000000000..72d7e0a187
--- /dev/null
+++ b/REORG.TODO/elf/tst-piemod1.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+
+int
+foo (void)
+{
+ return 21;
+}
+
+static int
+do_test (void)
+{
+ int val = foo ();
+ if (val != 34)
+ {
+ printf ("foo () returned %d\n", val);
+ return 1;
+ }
+
+ return 0;
+}
+
+#include <support/test-driver.c>