- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathmulti-file-nested-type-simple.swift
18 lines (13 loc) · 895 Bytes
/
multi-file-nested-type-simple.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -module-name Multi -o %t/multi-file.swiftmodule -primary-file %s %S/Inputs/multi-file-nested-types.swift
// RUN: %target-swift-frontend -emit-module -module-name Multi -o %t/multi-file-2.swiftmodule %s -primary-file %S/Inputs/multi-file-nested-types.swift
// RUN: %target-swift-frontend -emit-module -module-name Multi %t/multi-file.swiftmodule %t/multi-file-2.swiftmodule -o %t -print-stats 2>&1 | %FileCheck %s
// Switch the order of the files.
// RUN: %target-swift-frontend -emit-module -module-name Multi %t/multi-file-2.swiftmodule %t/multi-file.swiftmodule -o %t -print-stats 2>&1 | %FileCheck %s
// REQUIRES: asserts
// CHECK: 4 Serialization - # of nested types resolved without full lookup
publicfunc useTypes(
_:Outer.Inner,
_:Outer.InnerAlias,
_:OuterClass.Inner,
_:OuterClass.InnerAlias){}