File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ struct __attribute__((swift_attr("import_iterator"))) Iterator {
232
232
};
233
233
234
234
struct HasMethodThatReturnsIterator {
235
+ HasMethodThatReturnsIterator (const HasMethodThatReturnsIterator&);
235
236
Iterator getIterator () const ;
236
237
};
237
238
@@ -240,6 +241,7 @@ struct IteratorBox {
240
241
};
241
242
242
243
struct HasMethodThatReturnsIteratorBox {
244
+ HasMethodThatReturnsIteratorBox (const HasMethodThatReturnsIteratorBox&);
243
245
IteratorBox getIteratorBox () const ;
244
246
};
245
247
Original file line number Diff line number Diff line change @@ -108,4 +108,31 @@ struct HasTemplatedIterator {
108
108
109
109
typedef HasTemplatedIterator<int > HasUninstantiatableIterator;
110
110
111
- #endif // TEST_INTEROP_CXX_STDLIB_INPUTS_CUSTOM_SEQUENCE_H
111
+ struct HasInheritedConstIterator {
112
+ private:
113
+ InheritedConstIterator b = InheritedConstIterator(1 );
114
+ InheritedConstIterator e = InheritedConstIterator(6 );
115
+
116
+ public:
117
+ InheritedConstIterator begin () const { return b; }
118
+ InheritedConstIterator end () const { return e; }
119
+ };
120
+
121
+ template <typename T>
122
+ struct HasInheritedTemplatedConstIterator {
123
+ public:
124
+ typedef InheritedTemplatedConstIterator<int > iterator;
125
+
126
+ private:
127
+ iterator b = iterator(1 );
128
+ iterator e = iterator(7 );
129
+
130
+ public:
131
+ iterator begin () const { return b; }
132
+ iterator end () const { return e; }
133
+ };
134
+
135
+ typedef HasInheritedTemplatedConstIterator<int >
136
+ HasInheritedTemplatedConstIteratorInt;
137
+
138
+ #endif // TEST_INTEROP_CXX_STDLIB_INPUTS_CUSTOM_SEQUENCE_H
You can’t perform that action at this time.
0 commit comments