]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/relocs-literals/test.c
ld64-236.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / relocs-literals / test.c
index 2d199d08a793e2a07ef652560013f5e864841553..5939ef42300f5098a535695f83506052674ddc92 100644 (file)
@@ -48,7 +48,7 @@ long double getLongDouble() { return 3.0; }
 
 // rdar://problem/4732996
 const char* stringFutz(int x) {
-       return "hello" + 0x1000 + x;
+       return &"hello"[0x1000 + x];
 }
 
-const char*    usesAddend = "teststr" + 0x2000;
+const char*    usesAddend = &"teststr"[0x2000];