mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
13 lines
215 B
Plaintext
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 : $()
|
|
}
|