- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathdelayedparsing.swift
22 lines (19 loc) · 800 Bytes
/
delayedparsing.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/a.swift 2> %t/a.hash
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/b.swift 2> %t/b.hash
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/a.swift -experimental-skip-all-function-bodies 2> %t/c.hash
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/b.swift -experimental-skip-all-function-bodies 2> %t/d.hash
// RUN: cmp %t/a.hash %t/b.hash
// RUN: cmp %t/a.hash %t/c.hash
// RUN: cmp %t/a.hash %t/d.hash
// Make sure "interface hash" doesn't change after modifying type members, and
// BEGIN a.swift
classC{
func foo(){}
}
// BEGIN b.swift
classC{
func foo(){}
func bar(){}
}