mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
19 lines
734 B
Swift
19 lines
734 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -emit-module -Xfrontend -disable-diagnostic-passes -force-single-frontend-invocation -Xfrontend -enable-objc-interop -o %t/def_basic.swiftmodule %S/Inputs/def_basic.sil
|
|
// RUN: llvm-bcanalyzer %t/def_basic.swiftmodule | %FileCheck %s
|
|
// RUN: %target-build-swift -emit-sil -I %t %s -o %t/basic_sil.sil
|
|
// RUN: %target-sil-opt -I %t %t/basic_sil.sil -performance-linker | %FileCheck %S/Inputs/def_basic.sil
|
|
|
|
// This test currently is written such that no optimizations are assumed.
|
|
// REQUIRES: swift_test_mode_optimize_none
|
|
|
|
// CHECK-NOT: UnknownCode
|
|
|
|
// Inputs/def_basic.sil is based on basic.sil under test/SIL/Parser.
|
|
|
|
import def_basic
|
|
|
|
func test_all() {
|
|
serialize_all()
|
|
}
|