Files
swift-mirror/test/Interop/Cxx/foreign-reference/nullable-module-interface.swift
Alex Lorenz 786c78a895 [interop] do not synthesize special members for C++ records with incomplete fields
The incomplete fields will trigger different assertions when clang is sythensizing constructors/destructors

rdar://109417079
2023-09-11 11:01:51 -07:00

18 lines
555 B
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=Nullable -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
//
// XFAIL: OS=linux-android, OS=linux-androideabi
// CHECK: class Empty {
// CHECK: func test() -> Int32
// CHECK: class func create() -> Empty!
// CHECK: }
// CHECK: func mutateIt(_: Empty)
// CHECK: class IntPair {
// CHECK: func test() -> Int32
// CHECK: class func create() -> IntPair!
// CHECK: var a: Int32
// CHECK: var b: Int32
// CHECK: }
// CHECK: func mutateIt(_ x: IntPair!)