mirror of
https://github.com/apple/swift.git
synced 2026-10-02 10:58:03 +02:00
The value of the builtin is true, but the compiler doesn't know. This builtin is used to break infinite loops.
16 lines
379 B
Plaintext
16 lines
379 B
Plaintext
|
|
// RUN: %target-swift-frontend -emit-ir -parse-sil %s -parse-stdlib -Xllvm -sil-disable-pass=simplification | %FileCheck %s
|
|
|
|
import Builtin
|
|
import Swift
|
|
|
|
// CHECK-LABEL: define {{.*}} @entry()
|
|
// CHECK: ret i1 true
|
|
// CHECK-NEXT: }
|
|
sil @entry : $@convention(thin) () -> Builtin.Int1 {
|
|
bb0:
|
|
%0 = builtin "infinite_loop_true_condition"() : $Builtin.Int1
|
|
return %0
|
|
}
|
|
|