mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
422 B
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
|