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

12 lines
382 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 __attribute__((swift_private)) {
// CHECK-NOT: class ZeroSizedStruct final {
public struct ZeroSizedStruct {}
// CHECK: } // namespace Structs