mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
21 lines
896 B
Swift
21 lines
896 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// Ensure the attribute is printed in swiftinterface files
|
|
// RUN: %target-swift-emit-module-interface(%t/Foo.swiftinterface) %s -module-name Foo
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Foo.swiftinterface) -module-name Foo
|
|
// RUN: %FileCheck %s < %t/Foo.swiftinterface
|
|
|
|
// Ensure the attribute is in .swiftmodule files
|
|
// RUN: %target-swift-ide-test -print-module -module-to-print Foo -I %t -source-filename %s -fully-qualified-types -print-access > %t/printed-module.txt
|
|
// RUN: %FileCheck %s < %t/printed-module.txt
|
|
|
|
public struct A {
|
|
public static _const let A = "value"
|
|
public func takeConst1(a: _const Int) {}
|
|
public func takeConst2(a b: _const Int) {}
|
|
}
|
|
|
|
// CHECK: _const public static let A: Swift{{::|\.}}String
|
|
// CHECK: public func takeConst1(a: _const Swift{{::|\.}}Int)
|
|
// CHECK: public func takeConst2(a b: _const Swift{{::|\.}}Int)
|