Files
swift-mirror/test/Interop/SwiftToCxx/functions/PrintAsCxx/function_with_array.swift
Alex Lorenz 3a9b6dce9d [interop][SwiftToCxx] add support for emitting Swift stdlib dependency in one header file
This is the default behavior. You can disable this by specifying the -clang-header-expose-decls= flag explicitly when generating the header
2022-09-28 08:08:48 -07:00

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]) { }