X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/text-relocs/bar.c diff --git a/unit-tests/test-cases/text-relocs/bar.c b/unit-tests/test-cases/text-relocs/bar.c index 9224e92..a87566e 100644 --- a/unit-tests/test-cases/text-relocs/bar.c +++ b/unit-tests/test-cases/text-relocs/bar.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2007 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -24,12 +24,14 @@ #include // exit(), EXIT_SUCCESS #include -extern int* foo; +int y = 0; -bool testBar() -{ - return (*foo == 10); -} +static int x = 0; -int bar = 10; +int getx() { return x; } +void setx(int a) { x = a; } +void bar() +{ + printf("hello\n"); +}