Files
swift-mirror/test/Misc/stats_dir_instructions.swift
2021-02-08 14:27:43 -08:00

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")
}