Files
swift-mirror/test/Interop/SwiftToCxx/class/swift-class-ordering.swift
Gabor Horvath 7d0a32f863 [cxx-interop] Class declaration order does not matter
Looking through the old issues found one that we already fixed. Adding a
a test to close the issue. Closing #70336.

rdar://119405019
2025-07-08 17:50:28 +01:00

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) {}
}