Files
swift-mirror/test/SourceKit/DocSupport/doc_internal_closure_label.swift
Richard Wei 94e8f5393e Enable string processing by default.
Make frontend flag `-enable-experimental-string-processing` default to true.
2022-06-12 20:25:16 -07:00

19 lines
1.5 KiB
Swift

// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t.module-cache)
//
// RUN: %target-swift-frontend -typecheck -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -emit-module-interface-path %t/label.swiftinterface -enable-library-evolution -module-cache-path %t.module-cache %s
// RUN: %FileCheck --check-prefix=SWIFT_INTERFACE %s < %t/label.swiftinterface
// RUN: %sourcekitd-test -req=doc-info -module label -- -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-string-processing-module-import -I %t -target %target-triple -module-cache-path %t.module-cache > %t.response
// RUN: %diff -u %s.response %t.response
//
// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t.module-cache)
// RUN: %target-swift-frontend -emit-module %s -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -module-name label -emit-module-path %t/label.swiftmodule -module-cache-path %t.module-cache
// RUN: %sourcekitd-test -req=doc-info -module label -- -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-string-processing-module-import -I %t -target %target-triple -module-cache-path %t.module-cache> %t.response
// RUN: %diff -u %s.response %t.response
public func foo(_ callback: (_ myInternalParam: Int) -> Void) {}
// SWIFT_INTERFACE: import Swift
// SWIFT_INTERFACE: public func foo(_ callback: (_ myInternalParam: Swift.Int) -> Swift.Void)