Files
swift-mirror/test/SILOptimizer/strip_debug_info.sil
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

19 lines
421 B
Plaintext

// RUN: %target-sil-opt -enable-sil-verify-all -strip-debug-info %s | %FileCheck %s
sil_stage canonical
import Swift
import Builtin
// CHECK-LABEL: sil @test
// CHECK: bb0
// CHECK-NEXT: tuple
// CHECK-NEXT: return
sil @test : $@convention(thin) <T> (@inout T, Builtin.Int64) -> () {
bb0(%0 : $*T, %1 : $Builtin.Int64):
debug_value_addr %0 : $*T
debug_value %1 : $Builtin.Int64
%2 = tuple ()
return %2 : $()
}