X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/d696c285d331ab577dcabd00419d8c30336673da..55e3d2f687f4ed9653982dbda92c6a055b0a8350:/unit-tests/test-cases/relocs-literals/test.c?ds=sidebyside diff --git a/unit-tests/test-cases/relocs-literals/test.c b/unit-tests/test-cases/relocs-literals/test.c index 31e87c2..2d199d0 100644 --- a/unit-tests/test-cases/relocs-literals/test.c +++ b/unit-tests/test-cases/relocs-literals/test.c @@ -45,3 +45,10 @@ float getSingle() { return 1.0; } double getDouble() { return 2.0; } long double getLongDouble() { return 3.0; } + +// rdar://problem/4732996 +const char* stringFutz(int x) { + return "hello" + 0x1000 + x; +} + +const char* usesAddend = "teststr" + 0x2000;