mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Update ParseableInterface to ModuleInterface
Also remove uses of -emit-parseable-module-interface from tests
This commit is contained in:
16
test/ModuleInterface/optimization-level.swift
Normal file
16
test/ModuleInterface/optimization-level.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path %t/Lib.swiftinterface %s -O
|
||||
// RUN: %target-swift-frontend -compile-module-from-interface %t/Lib.swiftinterface -Xllvm -sil-print-pass-name -o /dev/null 2>&1 | %FileCheck --check-prefix OPT %s
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path %t/Lib.swiftinterface %s -Onone
|
||||
// RUN: %target-swift-frontend -compile-module-from-interface %t/Lib.swiftinterface -Xllvm -sil-print-pass-name -o /dev/null 2>&1 | %FileCheck --check-prefix UNOPT %s
|
||||
|
||||
// This is a bit of an implementation detail, but we want to make sure
|
||||
// optimization passes don't run when compiling a .swiftinterface that was
|
||||
// generated with -Onone.
|
||||
|
||||
// OPT: EagerSpecializer
|
||||
// UNOPT-NOT: EagerSpecializer
|
||||
public func f() {}
|
||||
|
||||
Reference in New Issue
Block a user