mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Explicitly mark the interpreter for the tool as windows does not implicitly treat shebangs as the interpreter. This allows for the proper invocation of the tool on Windows.
19 lines
813 B
Swift
19 lines
813 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: touch %t/main.swift
|
|
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %t/main.swift
|
|
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/frontend.csv %t
|
|
// RUN: %FileCheck -input-file %t/frontend.csv %s
|
|
|
|
// This test checks that we're reporting some number that's "at least 10MB" and
|
|
// "not more than 999MB", because for a while we were incorrectly reporting KB
|
|
// as bytes on non-macOS, so claiming we took (say) "100KB". If we ever manage
|
|
// to get the swift frontend to use less than 10MB, celebrate! And change this
|
|
// test. Likewise (minus celebration) if compiling a function like the following
|
|
// ever takes more than 1GB.
|
|
//
|
|
// CHECK: {{"Driver.ChildrenMaxRSS" [1-9][0-9]{7,8}$}}
|
|
|
|
public func foo() {
|
|
print("hello")
|
|
}
|