We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3ebc28 + 463f89f commit 146d050Copy full SHA for 146d050
test/SILOptimizer/cyclic_entry.sil
@@ -0,0 +1,18 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: not --crash %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s 2> %t/err.txt
3
+// RUN: %FileCheck %s < %t/err.txt
4
+
5
+// REQUIRES: asserts
6
7
+// The test in this file is meant to fail the verifier, as the entry block of a SIL
8
+// function can't have a predecessor.
9
10
+import Builtin
11
+import Swift
12
13
+// CHECK: SIL verification failed: entry block cannot have predecessors
14
15
+sil @patatino : $@convention(thin) () -> Never {
16
+bb0:
17
+ br bb0
18
+}
0 commit comments