Files
swift-mirror/test/Interop/SwiftToCxx/functions/PrintAsCxx/function_with_array.swift
2022-08-30 11:09:41 -07:00

10 lines
404 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -typecheck -clang-header-expose-public-decls -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-NOT: void f
public func f(_: [Int]) { }