Skip to content

Commit 979d53a

Browse files
authored
Merge pull request swiftlang#8914 from adrian-prantl/29605924
2 parents b25d443 + afdd366 commit 979d53a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/DebugInfo/bool.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
// RUN: %target-swift-frontend %s -emit-ir -gdwarf-types -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o - \
3+
// RUN: | %FileCheck %s --check-prefix=CHECK_G
24

35
func markUsed<T>(_ t: T) {}
46

57
// Int1 uses 1 bit, but is aligned at 8 bits.
68
// CHECK: !DIBasicType(name: "_T0Bi1_D", size: 1, encoding: DW_ATE_unsigned)
9+
// Bool has a fixed layout with a storage size of 1 byte and 7 "spare" bits.
10+
// CHECK_G: !DICompositeType(tag: DW_TAG_structure_type, name: "Bool",
11+
// CHECK_G-SAME: size: 8
712
func main() {
813
var t = true
914
var f = false

0 commit comments

Comments
 (0)