mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
19 lines
453 B
Plaintext
19 lines
453 B
Plaintext
// RUN: %empty-directory(%t)
|
|
// RUN: not --crash %target-sil-opt -enable-sil-verify-all %s 2> %t/err.txt
|
|
// RUN: %FileCheck %s < %t/err.txt
|
|
|
|
// REQUIRES: asserts
|
|
|
|
// The test in this file is meant to fail the verifier, as the entry block of a SIL
|
|
// function can't have a predecessor.
|
|
|
|
import Builtin
|
|
import Swift
|
|
|
|
// CHECK: SIL verification failed: entry block cannot have predecessors
|
|
|
|
sil @patatino : $@convention(thin) () -> Never {
|
|
bb0:
|
|
br bb0
|
|
}
|