mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
18 lines
442 B
C
18 lines
442 B
C
@import Foundation;
|
|
|
|
struct StructOfNSStrings {
|
|
__unsafe_unretained NSString *nsstr;
|
|
};
|
|
|
|
struct StructOfBlocks {
|
|
void (^__unsafe_unretained _Nonnull block)(void);
|
|
};
|
|
|
|
struct StrongsInAStruct { // expected-note {{record 'StrongsInAStruct' is not trivial to copy or destroy}}
|
|
__strong NSString *nsstr;
|
|
};
|
|
|
|
struct WeaksInAStruct { // expected-note {{record 'WeaksInAStruct' is not trivial to copy or destroy}}
|
|
__weak NSString *nsstr;
|
|
};
|