We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b25d443 + afdd366 commit 979d53aCopy full SHA for 979d53a
test/DebugInfo/bool.swift
@@ -1,9 +1,14 @@
1
// 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
4
5
func markUsed<T>(_ t: T) {}
6
7
// Int1 uses 1 bit, but is aligned at 8 bits.
8
// 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
12
func main() {
13
var t = true
14
var f = false
0 commit comments