]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/segment-labels/test.c
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / segment-labels / test.c
diff --git a/unit-tests/test-cases/segment-labels/test.c b/unit-tests/test-cases/segment-labels/test.c
new file mode 100644 (file)
index 0000000..247b989
--- /dev/null
@@ -0,0 +1,12 @@
+extern char text_start[] __asm("segment$start$__TEXT");
+extern char text_end[] __asm("segment$end$__TEXT");
+extern char text_text_start[] __asm("section$start$__TEXT$__text");
+
+void* a = &text_start;
+void* b = &text_end;
+void* c = &text_text_start;
+
+void start(void)
+{
+}
+