Skip to content

Commit 017ed74

Browse files
authored
Merge pull request #70462 from apple/egorzhdan/cleanup-std-tests
[cxx-interop] Cleanup CxxStdlib tests
2 parents 2cbe75d + 8f8d8b0 commit 017ed74

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

test/Interop/Cxx/stdlib/libcxx-module-interface.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-ide-test -print-module -module-to-print=CxxStdlib -source-filename=x -enable-experimental-cxx-interop -tools-directory=%llvm_obj_root/bin -module-cache-path %t | %FileCheck %s -check-prefix=CHECK-STD
2+
// RUN: %target-swift-ide-test -print-module -module-to-print=CxxStdlib -source-filename=x -enable-experimental-cxx-interop -tools-directory=%llvm_obj_root/bin -module-cache-path %t -module-print-submodules | %FileCheck %s -check-prefix=CHECK-STD-WITH-SUBMODULES
23
// RUN: %target-swift-ide-test -print-module -module-to-print=CxxStdlib.iosfwd -source-filename=x -enable-experimental-cxx-interop -tools-directory=%llvm_obj_root/bin -module-cache-path %t | %FileCheck %s -check-prefix=CHECK-IOSFWD
34
// RUN: %target-swift-ide-test -print-module -module-to-print=CxxStdlib.string -source-filename=x -enable-experimental-cxx-interop -tools-directory=%llvm_obj_root/bin -module-cache-path %t | %FileCheck %s -check-prefix=CHECK-STRING
45

@@ -8,6 +9,10 @@
89
// CHECK-STD: import CxxStdlib.iosfwd
910
// CHECK-STD: import CxxStdlib.string
1011

12+
// CHECK-STD-WITH-SUBMODULES: enum std {
13+
// CHECK-STD-WITH-SUBMODULES: enum __1 {
14+
// CHECK-STD-WITH-SUBMODULES-NOT: enum std
15+
1116
// CHECK-IOSFWD: enum std {
1217
// CHECK-IOSFWD: enum __1 {
1318
// CHECK-IOSFWD: struct basic_string<CChar, char_traits<CChar>, allocator<CChar>> : CxxRandomAccessCollection {
@@ -20,10 +25,12 @@
2025
// CHECK-IOSFWD: typealias wstring = std.__1.basic_string<CWideChar, char_traits<CWideChar>, allocator<CWideChar>>
2126
// CHECK-IOSFWD: }
2227
// CHECK-IOSFWD: }
28+
// CHECK-IOSFWD-NOT: enum std
2329

2430
// CHECK-STRING: enum std {
2531
// CHECK-STRING: enum __1 {
2632
// CHECK-STRING: static func to_string(_ __val: Int32) -> std.__1.string
2733
// CHECK-STRING: static func to_wstring(_ __val: Int32) -> std.__1.wstring
2834
// CHECK-STRING: }
2935
// CHECK-STRING: }
36+
// CHECK-STRING-NOT: enum std

test/Interop/Cxx/stdlib/print-libcxx-module-interface.swift

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)