mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
198 B
Objective-C
17 lines
198 B
Objective-C
@class C;
|
|
@interface C
|
|
{}
|
|
@end
|
|
|
|
struct __attribute__((swift_attr("import_unsafe"))) S {
|
|
union {
|
|
C *t;
|
|
char c;
|
|
};
|
|
S(const S &s) {}
|
|
~S() { }
|
|
int f() { return 42; }
|
|
};
|
|
|
|
S *getSPtr();
|