mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
373 B
Plaintext
24 lines
373 B
Plaintext
// RUN: %target-sil-opt %s
|
|
// REQUIRES: asserts
|
|
// XFAIL: *
|
|
|
|
// Make sure that the ownership verifier is turned on by default
|
|
|
|
sil_stage canonical
|
|
|
|
import Builtin
|
|
import Swift
|
|
import SwiftShims
|
|
|
|
class X {}
|
|
|
|
sil [ossa] @testit : $@convention(thin) (@owned X) -> () {
|
|
bb0(%0 : @owned $X):
|
|
destroy_value %0 : $X
|
|
destroy_value %0 : $X
|
|
%r = tuple ()
|
|
return %r : $()
|
|
}
|
|
|
|
|