X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/flat-prebound/main.c diff --git a/unit-tests/test-cases/flat-prebound/main.c b/unit-tests/test-cases/flat-prebound/main.c index b43924f..54862f4 100644 --- a/unit-tests/test-cases/flat-prebound/main.c +++ b/unit-tests/test-cases/flat-prebound/main.c @@ -23,26 +23,29 @@ #include // fprintf(), NULL #include // exit(), EXIT_SUCCESS #include - +#include #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL() // foo() internally calls bar() // libfoo.dylib is build flat and prebound to libbar.dylib // but the bar in this main executable should override the prebound bar - -extern int foo(); +extern bool foo(); int main() { - if ( foo() != 0 ) - FAIL("flat-prebound found wrong bar"); - else + if ( foo() ) PASS("flat-prebound"); + else + FAIL("flat-prebound found wrong bar"); return EXIT_SUCCESS; } + int bar() { return 0; } +int barVar = 0; +int barVar2 = 0; +