[swift-parse-test] Dont show throughput if it the elasped time is zero

Fix division by zero.

rdar://117750086
This commit is contained in:
Rintaro Ishizaki
2023-11-03 09:47:29 -07:00
parent b0105e112d
commit 024726f1f1
2 changed files with 14 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
// REQUIRES: swift_swift_parser
// RUN: %swift-parse-test -swift-parser -lib-parse -skip-bodies -n 2 %s
// REQUIRES: rdar117750086
// RUN: %swift-parse-test -swift-parser -lib-parse -skip-bodies -n 10 %s
struct S {
func foo() {
print(1)