]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/branch-long/foo.c
ld64-236.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / branch-long / foo.c
diff --git a/unit-tests/test-cases/branch-long/foo.c b/unit-tests/test-cases/branch-long/foo.c
new file mode 100644 (file)
index 0000000..60e96d2
--- /dev/null
@@ -0,0 +1,25 @@
+
+int x = 1;
+int y = 2;
+
+__attribute__((weak))
+void myweak1()
+{
+}
+
+int foo()
+{
+  myweak1();
+  return 1;
+}
+
+int foo1()
+{
+  return x;
+}
+
+int foo2()
+{
+  return y;
+}
+