]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/static-executable-pie/test.c
ld64-133.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / static-executable-pie / test.c
diff --git a/unit-tests/test-cases/static-executable-pie/test.c b/unit-tests/test-cases/static-executable-pie/test.c
new file mode 100644 (file)
index 0000000..4d09a3a
--- /dev/null
@@ -0,0 +1,19 @@
+
+int a;
+int b = 5;
+int* pa = &a;
+int* pb = &b;
+
+int foo()
+{
+       *pa = 4;
+       return a+b;
+}
+
+
+int entry()
+{
+       return foo();
+}
+
+