mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
456 B
Swift
13 lines
456 B
Swift
// REQUIRES: OS=macosx
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %s
|
|
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/frontend.csv %t
|
|
// RUN: %FileCheck -input-file %t/frontend.csv %s
|
|
//
|
|
// Note: this may be zero if we're on a machine with no hardware counters (eg. a VM)
|
|
// CHECK: {{"Frontend.NumInstructionsExecuted" [0-9]*$}}
|
|
|
|
public func foo() {
|
|
print("hello")
|
|
}
|