aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-undefined/undefined.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-undefined/undefined.c')
-rw-r--r--ld/testsuite/ld-undefined/undefined.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-undefined/undefined.c b/ld/testsuite/ld-undefined/undefined.c
new file mode 100644
index 0000000..ef2aec6
--- /dev/null
+++ b/ld/testsuite/ld-undefined/undefined.c
@@ -0,0 +1,10 @@
+/* This file is used to test the linker's reporting of undefined
+ symbols. */
+
+extern int this_function_is_not_defined ();
+
+int
+function ()
+{
+ return this_function_is_not_defined ();
+}