blob: 479cafe5931e7f9efb802027f0151ac0520ecaaa [file] [log] [blame]
// RUN: %target-swift-frontend -module-name Swift -parse-stdlib -emit-silgen %s | FileCheck %s
protocol BooleanType {
var boolValue: Bool { get }
}
struct Bool : BooleanType {
var value: Builtin.Int1
func _getBuiltinLogicValue() -> Builtin.Int1 { return value }
var boolValue: Bool { return self }
}
// CHECK-LABEL: sil hidden @_TFs5test1
func test1(bi: Bool) {
var b = bi
for var c = b; b; b = c {
if b {
break
}
continue
}
}