mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The existence of a shared_external function in itself is not an error; it just means we deserialized a witness table or vtable but did not need to deserialize a thunk. However, a direct reference to such a function is an error, because we should have deserialized the body in that case. This fixes a crasher, but the SIL crashers are kind of silly because the SIL parser does not try at all not to crash on invalid input.
3 lines
57 B
Plaintext
3 lines
57 B
Plaintext
// RUN: %target-sil-opt %s
|
|
sil shared_external@a:$()->()
|