]> 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
index 31e87c22acb4e679131bbd9044f54e4a8243bea2..5939ef42300f5098a535695f83506052674ddc92 100644 (file)
@@ -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];