X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..HEAD:/unit-tests/test-cases/weak-override/foo.c diff --git a/unit-tests/test-cases/weak-override/foo.c b/unit-tests/test-cases/weak-override/foo.c index dcce76e..984ee82 100644 --- a/unit-tests/test-cases/weak-override/foo.c +++ b/unit-tests/test-cases/weak-override/foo.c @@ -33,3 +33,10 @@ int __attribute__((weak)) foo() { return myfunc(); } + +int (*myfuncproc)() = &myfunc; + +int bar() +{ + return (*myfuncproc)(); +}