mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If we have a C++ record decl that's invalid (because of a deleted destructor or copy constructor), bail before we import any of its members or cache the decl. This way, we don't accidentally import any "nested" decls.
5 lines
216 B
Swift
5 lines
216 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=InvalidNestedStruct -I %S/Inputs/ -source-filename=x -enable-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK-NOT: CannotImport
|
|
// CHECK-NOT: ForwardDeclaredSibling
|