Update Darwin cfstring tests for linker-visible labels
Adjusts Darwin cfstring tests to handle linker-visible string labels.
This commit updates Darwin-specific test cases for cfstring to accommodate changes related to linker-visible string labels, which were introduced in PR126723. The tests now correctly handle these linker-visible labels, ensuring their continued functionality and correctness on Darwin targets.
In Details
The test files g++.dg/torture/darwin-cfstring-3.C and gcc.dg/torture/darwin-cfstring-3.c have been updated to account for the fix in PR126723, which affects how string labels are made visible to the linker on Darwin. Previously, these tests might have assumed a certain linking behavior for strings used in cfstring constructs. The update ensures that the tests correctly recognize and handle string labels that are now explicitly marked as linker-visible, aligning the test suite with the corrected compiler behavior.
- cfstring
- A programming construct often used in Objective-C and Cocoa frameworks for efficient handling of string constants.
- linker-visible
- A symbol (like a label or variable) that is made available to the linker, allowing it to be referenced by other object files or libraries during the final linking stage.
- string label
- A symbolic name assigned to a string literal or a memory location containing a string, used by the assembler and linker.
- Darwin
- The open-source Unix-based operating system foundation of macOS, iOS, and other Apple operating systems. GCC includes specific support for Darwin targets.