File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
test/Interop/Cxx/symbolic-imports Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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: }
You can’t perform that action at this time.
0 commit comments