Skip to content

[cxx-interop] Update and enable libc++ module interface test #62811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions test/Interop/Cxx/stdlib/libcxx-module-interface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@
// This test is specific to libc++ and therefore only runs on Darwin platforms.
// REQUIRES: OS=macosx || OS=ios

// REQUIRES: rdar84036022

// CHECK-STD: import std.iosfwd
// CHECK-STD: import std.string

// CHECK-IOSFWD: extension std.__1 {
// CHECK-IOSFWD: struct __CxxTemplateInstNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE {
// CHECK-IOSFWD: typealias value_type = CChar
// CHECK-IOSFWD: }
// CHECK-IOSFWD: struct __CxxTemplateInstNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEE {
// CHECK-IOSFWD: typealias value_type = CWideChar
// CHECK-IOSFWD: enum std {
// CHECK-IOSFWD: enum __1 {
// CHECK-IOSFWD: struct __CxxTemplateInstNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE {
// CHECK-IOSFWD: typealias value_type = CChar
// CHECK-IOSFWD: }
// CHECK-IOSFWD: struct __CxxTemplateInstNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEE {
// CHECK-IOSFWD: typealias value_type = CWideChar
// CHECK-IOSFWD: }
// CHECK-IOSFWD: typealias string = std.__1.__CxxTemplateInstNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE
// CHECK-IOSFWD: typealias wstring = std.__1.__CxxTemplateInstNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEE
// CHECK-IOSFWD: }
// CHECK-IOSFWD: typealias string = std.__1.__CxxTemplateInstNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE
// CHECK-IOSFWD: typealias wstring = std.__1.__CxxTemplateInstNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEE
// CHECK-IOSFWD: }

// CHECK-STRING: extension std.__1 {
// CHECK-STRING: static func to_string(_ __val: Int32) -> std.__1.string
// CHECK-STRING: static func to_wstring(_ __val: Int32) -> std.__1.wstring
// CHECK-STRING: enum std {
// CHECK-STRING: enum __1 {
// CHECK-STRING: static func to_string(_ __val: Int32) -> std.__1.string
// CHECK-STRING: static func to_wstring(_ __val: Int32) -> std.__1.wstring
// CHECK-STRING: }
// CHECK-STRING: }

// CHECK-IOSFWD-NOT: static func to_string
// CHECK-STRING-NOT: typealias string
// CHECK-STD-NOT: extension std