X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/74cfe461234fcf76aadb30ed686f281f06b555cd..a61fdf0a731e23ff7eb0cc86ba748fd9af5de879:/unit-tests/test-cases/relocs-literals/test.c?ds=inline 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;