Files
swift-mirror/test/Interop/SwiftToCxx/structs/zero-sized-struct-in-cxx.swift

12 lines
422 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -typecheck -module-name Structs -clang-header-expose-decls=all-public -emit-clang-header-path %t/structs.h
// RUN: %FileCheck %s < %t/structs.h
// CHECK: namespace Structs SWIFT_PRIVATE_ATTR SWIFT_SYMBOL_MODULE("Structs") {
// CHECK-NOT: class SWIFT_SYMBOL({{.*}}) ZeroSizedStruct final {
public struct ZeroSizedStruct {}
// CHECK: } // namespace Structs