]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/weak-override/foo.c
dyld-851.27.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-override / foo.c
index dcce76ef9aee78c48661ef3859e0ec4f2d933666..984ee82a0504df8f1a7cf41186a9ada9198747e1 100644 (file)
@@ -33,3 +33,10 @@ int __attribute__((weak)) foo()
 {
        return myfunc();
 }
+
+int (*myfuncproc)() = &myfunc;
+
+int  bar()
+{
+       return (*myfuncproc)();
+}