mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Looking through the old issues found one that we already fixed. Adding a a test to close the issue. Closing #70336. rdar://119405019
22 lines
410 B
Swift
22 lines
410 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -module-name Class -clang-header-expose-decls=all-public -typecheck -verify -emit-clang-header-path %t/class.h
|
|
|
|
// RUN: %check-interop-cxx-header-in-clang(%t/class.h)
|
|
|
|
public class SwiftNode {
|
|
}
|
|
|
|
public struct SwiftLinkedList {
|
|
public var head: SwiftNode
|
|
}
|
|
|
|
public class B
|
|
{
|
|
public init() {}
|
|
}
|
|
|
|
public class A
|
|
{
|
|
public init(_ b: B) {}
|
|
}
|