mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[interop][SwiftToCxx] expose subscript getter for Array's operator []
This commit is contained in:
@@ -48,6 +48,8 @@ int main() {
|
||||
UseArray::printArray(val);
|
||||
assert(val.getCount() == 1);
|
||||
assert(val.getCapacity() >= 1);
|
||||
auto zeroInt = val[0];
|
||||
assert(zeroInt == -11);
|
||||
auto firstInt = val.remove(0);
|
||||
assert(firstInt == -11);
|
||||
assert(val.getCount() == 0);
|
||||
|
||||
Reference in New Issue
Block a user