Files
swift-mirror/test/Interop/SwiftToCxx/functions/PrintAsCxx/function_with_array.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]) { }