mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The directory currently seems to have a mix of tests for import resolution and name lookup. Therefore split it into two directories; ImportResolution and NameLookup.
16 lines
757 B
Swift
16 lines
757 B
Swift
// RUN: rm -rf %t && mkdir -p %t/stats-pre && mkdir -p %t/stats-post
|
|
//
|
|
// Compile swiftmodule with decl member name tables
|
|
// RUN: %target-swift-frontend -emit-module -o %t/NamedLazyMembers.swiftmodule %S/Inputs/NamedLazyMembers/NamedLazyMembers.swift
|
|
//
|
|
// Check that named-lazy-member-loading reduces the number of Decls deserialized
|
|
// RUN: %target-swift-frontend -typecheck -I %t -disable-named-lazy-member-loading -typecheck -stats-output-dir %t/stats-pre %s
|
|
// RUN: %target-swift-frontend -typecheck -I %t -stats-output-dir %t/stats-post %s
|
|
// RUN: %{python} %utils/process-stats-dir.py --evaluate-delta 'NumDeclsDeserialized < -5' %t/stats-pre %t/stats-post
|
|
|
|
import NamedLazyMembers
|
|
|
|
public func test(b: BaseEnum) -> Bool {
|
|
return b == .member1
|
|
}
|