Files
swift-mirror/test/SIL/verifier-fail-instruction.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

13 lines
215 B
Plaintext

// 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 : $()
}