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