File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-ide-test -print-module -module-to-print=std -source-filename=x -enable-experimental-cxx-interop -module-cache-path %t | %FileCheck %s -check-prefix=CHECK-STD
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-ide-test -print-module -module-to-print=std -source-filename=x -enable-experimental-cxx-interop -module-cache-path %t > %t/interface.swift
3
+ // RUN: %FileCheck %s -check-prefix=CHECK-STD < %t/interface.swift
4
+ // RUN: %FileCheck %s -check-prefix=CHECK-TO-STRING < %t/interface.swift
5
+ // RUN: %FileCheck %s -check-prefix=CHECK-STRING < %t/interface.swift
6
+
7
+ // Running this test with different versions of libstdc++ will result in the decls being printed in different order.
2
8
3
9
// This test is specific to libstdc++ and only runs on platforms where libstdc++ is used.
4
10
// REQUIRES: OS=linux-gnu
5
11
6
- // REQUIRES: rdar91518316
7
-
8
12
// CHECK-STD: enum std {
9
13
// CHECK-STD: enum __cxx11 {
10
14
// CHECK-STD: struct __CxxTemplateInstNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE {
15
19
// CHECK-STD: }
16
20
// CHECK-STD: }
17
21
18
- // CHECK-STD : static func to_string(_ __val: Int32) -> std.string
19
- // CHECK-STD : static func to_wstring(_ __val: Int32) -> std.wstring
22
+ // CHECK-TO-STRING : static func to_string(_ __val: Int32) -> std{{(.__cxx11)?}} .string
23
+ // CHECK-TO-STRING : static func to_wstring(_ __val: Int32) -> std{{(.__cxx11)?}} .wstring
20
24
21
25
// CHECK-STD: typealias size_t = Int
22
26
23
- // CHECK-STD : typealias string = std.__cxx11.__CxxTemplateInstNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
24
- // CHECK-STD : typealias wstring = std.__cxx11.__CxxTemplateInstNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE
27
+ // CHECK-STRING : typealias string = std.__cxx11.__CxxTemplateInstNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
28
+ // CHECK-STRING : typealias wstring = std.__cxx11.__CxxTemplateInstNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE
25
29
// CHECK-STD: }
You can’t perform that action at this time.
0 commit comments