]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/relocs-literals/test.c
ld64-95.2.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / relocs-literals / test.c
index 31e87c22acb4e679131bbd9044f54e4a8243bea2..2d199d08a793e2a07ef652560013f5e864841553 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;