Files
swift-mirror/test/Interop/SwiftToCxx/stdlib/combination-of-stdlib-generics-in-cxx.swift

14 lines
520 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck %s -typecheck -module-name UseOptional -enable-experimental-cxx-interop -emit-clang-header-path %t/stdlib.h
// RUN: %FileCheck %s < %t/stdlib.h
// RUN: %check-interop-cxx-header-in-clang(-DSWIFT_CXX_INTEROP_HIDE_STL_OVERLAY %t/stdlib.h -Wno-unused-private-field -Wno-unused-function)
@_expose(Cxx)
public func testOptIntArray() -> [Int]? {
return []
}
// CHECK: SWIFT_INLINE_THUNK swift::Optional<swift::Array<swift::Int>> testOptIntArray()