Files
swift-mirror/test/SILOptimizer/globalopt-iter.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

27 lines
659 B
Plaintext

// RUN: %target-sil-opt -enable-sil-verify-all %s -object-outliner | %FileCheck %s
import Builtin
import Swift
class B { }
class E : B { }
// CHECK: sil @patatino : $@convention(thin) () -> () {
// CHECK: bb0:
// CHECK-NEXT: integer_literal
// CHECK-NEXT: global_value @patatinoTv_ : $B
// CHECK-NEXT: strong_retain
// CHECK-NEXT: strong_release
// CHECK-NEXT: tuple ()
// CHECK-NEXT: return
// CHECK-NEXT: }
sil @patatino : $@convention(thin) () -> () {
%0 = integer_literal $Builtin.Word, 0
%1 = alloc_ref [tail_elems $Int64 * %0 : $Builtin.Word] $B
set_deallocating %1 : $B
dealloc_ref %1 : $B
%45 = tuple ()
return %45 : $()
}