]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/relocs-literals/test.c
ld64-351.8.tar.gz
[apple/ld64.git] / unit-tests / test-cases / relocs-literals / test.c
old mode 100755 (executable)
new mode 100644 (file)
index 2d199d0..5939ef4
@@ -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];