mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
This error was not printed because the verifier complained before the error handling was done.
17 lines
373 B
Plaintext
17 lines
373 B
Plaintext
// RUN: not %target-sil-opt -o /dev/null %s 2>&1 | %FileCheck %s
|
|
|
|
// REQUIRES: asserts
|
|
|
|
sil_stage canonical
|
|
|
|
import Builtin
|
|
|
|
sil @undefined_function_ref : $@convention(thin) () -> () {
|
|
bb0:
|
|
// CHECK: :[[@LINE+1]]:21: error: use of undefined value 'undefined_function'
|
|
%0 = function_ref @undefined_function : $@convention(thin) () -> ()
|
|
%r = tuple ()
|
|
return %r
|
|
}
|
|
|