mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is the default behavior. You can disable this by specifying the -clang-header-expose-decls= flag explicitly when generating the header
10 lines
436 B
Swift
10 lines
436 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -typecheck -clang-header-expose-decls=all-public -emit-clang-header-path %t/function_with_array.h
|
|
// RUN: %FileCheck %s < %t/function_with_array.h
|
|
|
|
// CHECK: namespace function_with_array
|
|
// FIXME: we don't actually emit a declaration for this, but for now at least
|
|
// check that we don't crash.
|
|
// CHECK: void f(const Swift::Array<swift::Int>&
|
|
public func f(_: [Int]) { }
|