blob: dda958f9f76bd6651089434346256ee28e23096b [file] [log] [blame]
// RUN: not --crash %target-sil-opt %s
// REQUIRES: asserts
class A {
}
sil @bad_instruction : $@convention(thin) (@inout A) -> () {
bb0(%0 : $*A):
%1 = upcast %0 : $*A to $*A
%2 = tuple()
return %2 : $()
}