|
1 |
| -// RUN: %target-swift-ide-test -print-module -module-to-print=ClassTemplateWithPrimitiveArgument -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s |
| 1 | +// RUN: %target-swift-ide-test -source-filename=x -print-module -module-to-print=ClassTemplateWithPrimitiveArgument -I %S/Inputs -cxx-interoperability-mode=default | %FileCheck %s |
2 | 2 |
|
3 | 3 | // CHECK: @available(*, unavailable
|
4 | 4 | // CHECK: struct MagicWrapper<T> {
|
|
8 | 8 | // CHECK: }
|
9 | 9 |
|
10 | 10 | // CHECK: typealias WrappedMagicInt = MagicWrapper<CInt>
|
11 |
| -// CHECK: typealias WrappedMagicIntConst = MagicWrapper<CInt_const> |
12 |
| -// CHECK: typealias WrappedMagicLongConst = MagicWrapper<CLong_const> |
| 11 | +// CHECK: typealias WrappedMagicIntConst = MagicWrapper<__cxxConst<CInt>> |
| 12 | +// CHECK: typealias WrappedMagicLongConst = MagicWrapper<__cxxConst<CLong>> |
13 | 13 | // CHECK: typealias WrappedMagicIntPtr = MagicWrapper<UnsafeMutablePointer<CInt>>
|
14 | 14 | // CHECK: typealias WrappedMagicIntConstPtr = MagicWrapper<UnsafePointer<CInt>>
|
15 | 15 | // CHECK: typealias WrappedMagicIntPtrPtr = MagicWrapper<UnsafeMutablePointer<UnsafeMutablePointer<CInt>>>
|
16 | 16 | // CHECK: typealias WrappedMagicIntArr = MagicWrapper<[CInt]>
|
17 | 17 | // CHECK: typealias WrappedMagicLongArr = MagicWrapper<[CLong]>
|
18 | 18 | // CHECK: typealias WrappedMagicIntFixedSizeArr1 = MagicWrapper<Vector<CInt, 123>>
|
19 | 19 | // CHECK: typealias WrappedMagicIntFixedSizeArr2 = MagicWrapper<Vector<CInt, 124>>
|
20 |
| -// CHECK: typealias WrappedMagicNullPtr = MagicWrapper<nil> |
| 20 | +// CHECK: typealias WrappedMagicNullPtr = MagicWrapper<__cxxNullPtrT> |
21 | 21 |
|
22 | 22 | // CHECK: typealias DoubleWrappedInt = DoubleWrapper<MagicWrapper<CInt>>
|
23 |
| -// CHECK: typealias DoubleWrappedIntConst = DoubleWrapper<MagicWrapper<CInt_const>> |
24 |
| -// CHECK: typealias DoubleWrappedLongConst = DoubleWrapper<MagicWrapper<CLong_const>> |
| 23 | +// CHECK: typealias DoubleWrappedIntConst = DoubleWrapper<MagicWrapper<__cxxConst<CInt>>> |
| 24 | +// CHECK: typealias DoubleWrappedLongConst = DoubleWrapper<MagicWrapper<__cxxConst<CLong>>> |
25 | 25 | // CHECK: typealias DoubleWrappedIntPtr = DoubleWrapper<MagicWrapper<UnsafeMutablePointer<CInt>>>
|
26 | 26 | // CHECK: typealias DoubleWrappedIntConstPtr = DoubleWrapper<MagicWrapper<UnsafePointer<CInt>>>
|
27 | 27 | // CHECK: typealias DoubleWrappedMagicIntArr = DoubleWrapper<MagicWrapper<[CInt]>>
|
28 | 28 | // CHECK: typealias DoubleWrappedMagicLongArr = DoubleWrapper<MagicWrapper<[CLong]>>
|
29 | 29 | // CHECK: typealias DoubleWrappedMagicIntFixedSizeArr1 = DoubleWrapper<MagicWrapper<Vector<CInt, 42>>>
|
30 | 30 | // CHECK: typealias DoubleWrappedMagicIntFixedSizeArr2 = DoubleWrapper<MagicWrapper<Vector<CInt, 43>>>
|
31 |
| -// CHECK: typealias DoubleWrappedMagicNullPtr = DoubleWrapper<MagicWrapper<nil>> |
| 31 | +// CHECK: typealias DoubleWrappedMagicNullPtr = DoubleWrapper<MagicWrapper<__cxxNullPtrT>> |
| 32 | + |
| 33 | +// CHECK: typealias DoubleConstWrappedInt = DoubleWrapper<__cxxConst<MagicWrapper<CInt>>> |
| 34 | +// CHECK: typealias DoubleConstWrappedIntConst = DoubleWrapper<__cxxConst<MagicWrapper<__cxxConst<CInt>>>> |
| 35 | +// CHECK: typealias DoubleConstWrappedLongConst = DoubleWrapper<__cxxConst<MagicWrapper<__cxxConst<CLong>>>> |
| 36 | +// CHECK: typealias DoubleConstWrappedIntPtr = DoubleWrapper<__cxxConst<MagicWrapper<UnsafeMutablePointer<CInt>>>> |
| 37 | +// CHECK: typealias DoubleConstWrappedIntConstPtr = DoubleWrapper<__cxxConst<MagicWrapper<UnsafePointer<CInt>>>> |
| 38 | +// CHECK: typealias DoubleConstWrappedMagicIntArr = DoubleWrapper<__cxxConst<MagicWrapper<[CInt]>>> |
| 39 | +// CHECK: typealias DoubleConstWrappedMagicLongArr = DoubleWrapper<__cxxConst<MagicWrapper<[CLong]>>> |
| 40 | +// CHECK: typealias DoubleConstWrappedMagicIntFixedSizeArr1 = DoubleWrapper<__cxxConst<MagicWrapper<Vector<CInt, 42>>>> |
| 41 | +// CHECK: typealias DoubleConstWrappedMagicIntFixedSizeArr2 = DoubleWrapper<__cxxConst<MagicWrapper<Vector<CInt, 43>>>> |
| 42 | +// CHECK: typealias DoubleConstWrappedMagicNullPtr = DoubleWrapper<__cxxConst<MagicWrapper<__cxxNullPtrT>>> |
| 43 | + |
| 44 | +// CHECK: typealias WrappedVolatileInt = MagicWrapper<__cxxVolatile<CInt>> |
| 45 | +// CHECK: typealias WrappedConstVolatileInt = MagicWrapper<__cxxConst<__cxxVolatile<CInt>>> |
| 46 | +// CHECK: typealias WrappedVolatileConstInt = MagicWrapper<__cxxConst<__cxxVolatile<CInt>>> |
0 commit comments