Skip to content

Commit f3224ca

Browse files
authored
Merge pull request #73248 from apple/egorzhdan/test-symbolic-new-features
[cxx-interop] Test symbolic interface generation for new features
2 parents 1846159 + 442f9c1 commit f3224ca

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/Interop/Cxx/symbolic-imports/print-symbolic-module-interface.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ public:
6060
};
6161
};
6262

63+
#define IMMORTAL_FRT \
64+
__attribute__((swift_attr("import_reference"))) \
65+
__attribute__((swift_attr("retain:immortal"))) \
66+
__attribute__((swift_attr("release:immortal")))
67+
68+
struct IMMORTAL_FRT MyImmortal {
69+
virtual void foo() const {};
70+
};
71+
72+
struct NonCopyable {
73+
NonCopyable(const NonCopyable& other) = delete;
74+
};
75+
6376
// CHECK: enum ns {
6477
// CHECK-NEXT: struct B {
6578
// CHECK-NEXT: init()
@@ -98,3 +111,10 @@ public:
98111
// CHECK-NEXT: typealias Y = Any
99112
// CHECK-NEXT: }
100113
// CHECK-NEXT: }
114+
// CHECK: class MyImmortal {
115+
// CHECK-NEXT: func foo()
116+
// CHECK-NEXT: }
117+
// CHECK-NEXT: struct NonCopyable {
118+
// CHECK-NEXT: @available(*, deprecated, message:
119+
// CHECK-NEXT: init()
120+
// CHECK-NEXT: }

0 commit comments

Comments
 (0)