Files
swift-mirror/validation-test/SIL/crashers_fixed/005-swift-silfunction-verify.sil
Slava Pestov 8201eaaa60 SIL: Change rule regarding shared_external linkage
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.
2017-03-30 00:45:20 -07:00

3 lines
57 B
Plaintext

// RUN: %target-sil-opt %s
sil shared_external@a:$()->()