Files
swift-mirror/test/DebugInfo/bool.swift
Bob Wilson 37c8a1cc49 Fix DebugInfo/bool.swift test to match a4e5bb6d3f.
The alignment is no longer specified as part of the type.
2016-11-09 10:40:40 -08:00

14 lines
305 B
Swift

// RUN: %target-swift-frontend %s -emit-ir -gdwarf-types -o - | %FileCheck %s
func markUsed<T>(_ t: T) {}
// Int1 uses 1 bit, but is aligned at 8 bits.
// CHECK: !DIBasicType(name: "_TtBi1_", size: 1, encoding: DW_ATE_unsigned)
func main() {
var t = true
var f = false
markUsed("hello")
}
main()