summaryrefslogtreecommitdiff
path: root/Tests/ObjectLibrary/LinkObjects/c_obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ObjectLibrary/LinkObjects/c_obj.c')
-rw-r--r--Tests/ObjectLibrary/LinkObjects/c_obj.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/ObjectLibrary/LinkObjects/c_obj.c b/Tests/ObjectLibrary/LinkObjects/c_obj.c
new file mode 100644
index 000000000..08fa5f5bd
--- /dev/null
+++ b/Tests/ObjectLibrary/LinkObjects/c_obj.c
@@ -0,0 +1,8 @@
+#ifndef OBJC
+# error "OBJC is not defined, but should be"
+#endif
+extern int c_dep(void);
+int c_obj(void)
+{
+ return c_dep();
+}