Skip to content

Commit a7ec9f1

Browse files
committed
[interop][SwiftToCxx] also test for UTF8View API in the test
1 parent 5e09a5c commit a7ec9f1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/Interop/SwiftToCxx/stdlib/swift-stdlib-in-cxx.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@
104104
// CHECK-NEXT: #endif
105105
// CHECK-NEXT: private:
106106

107+
// CHECK: class UTF8View final {
108+
// CHECK: inline UTF8View(UTF8View &&) { abort(); }
109+
// CHECK-NEXT: inline String_Index getStartIndex() const;
110+
// CHECK-NEXT: inline String_Index getEndIndex() const;
111+
// CHECK-NEXT: inline String_Index index(const String_Index& i, swift::Int n) const;
112+
// CHECK-NEXT: inline Swift::Optional<String_Index> index(const String_Index& i, swift::Int n, const String_Index& limit) const;
113+
// CHECK-NEXT: inline swift::Int distance(const String_Index& i, const String_Index& j) const;
114+
// CHECK-NEXT: inline uint8_t operator [](const String_Index& i) const;
115+
// CHECK-NEXT: inline String getDebugDescription() const;
116+
// CHECK-NEXT: inline String getDescription() const;
117+
// CHECK-NEXT: inline swift::Int getCount() const;
118+
107119
// CHECK: #if __has_include(<../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>)
108120
// CHECK-NEXT: #include <../../../swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>
109121
// CHECK-NEXT: #elif __has_include(<../../../../../lib/swift/swiftToCxx/_SwiftStdlibCxxOverlay.h>)

0 commit comments

Comments
 (0)