mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
27 lines
739 B
Swift
27 lines
739 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %s -trace-stats-events -Xfrontend -fine-grained-timers
|
|
// RUN: %FileCheck -input-file %t/*.csv %s
|
|
|
|
// CHECK-DAG: {{[0-9]+,[0-9]+,"exit","SelfBoundsFromWhereClauseRequest","Sema.SelfBoundsFromWhereClauseRequest",[0-9]+,[0-9]+,"Proto",".*stats_dir_tracer.swift.*"}}
|
|
// CHECK-DAG: {{[0-9]+,[0-9]+,"exit","SuperclassDeclRequest","Sema.SuperclassDeclRequest",[0-9]+,[0-9]+,"Bar","\[.*stats_dir_tracer.swift.*\]"}}
|
|
|
|
public func foo() {
|
|
print("hello")
|
|
}
|
|
|
|
protocol Proto {
|
|
func bar() -> Int;
|
|
}
|
|
|
|
class Bar {
|
|
typealias T = Int
|
|
}
|
|
|
|
extension Bar : Proto {
|
|
func bar() -> T {
|
|
let x = 1
|
|
let y = Int(1.0)
|
|
return x + y
|
|
}
|
|
}
|