mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
301 B
Swift
14 lines
301 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
|
|
|
|
func markUsed<T>(t: T) {}
|
|
|
|
// Int1 uses 1 bit, but is aligned at 8 bits.
|
|
// CHECK: !DIBasicType(name: "_TtBi1_", size: 1, align: 8, encoding: DW_ATE_unsigned)
|
|
func main() {
|
|
var t = true
|
|
var f = false
|
|
markUsed("hello")
|
|
}
|
|
|
|
main()
|