mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adjust the IRGen for ObjC interop to ensure that the section that metadata is emitted into the correct section for non-MachO targets. This also adds a more comprehensive test for ensuring that the IRGen can now be tested on all targets. Since the ObjC interop is now controllable via the driver, this test does not require that the objc_interop feature is present as it is a IRGen test. This is the first step to remove the `REQUIRES: objc_interop` from the IRGen tests.
13 lines
126 B
Objective-C
13 lines
126 B
Objective-C
|
|
@protocol P
|
|
@optional
|
|
- (void)method;
|
|
@end
|
|
|
|
@interface I
|
|
- (instancetype _Nonnull)init;
|
|
@end
|
|
|
|
I * _Nonnull f(I * _Nonnull);
|
|
|