Fix test expectations for @DebugDescription changes around @section syntactic checking

This commit is contained in:
Kuba Mracek
2025-10-23 08:49:49 -07:00
parent b47227b57b
commit c63db8af1d
9 changed files with 135 additions and 87 deletions

View File

@@ -9,11 +9,14 @@ struct MyStruct {
var name: String = "thirty"
var debugDescription: String { "${\(self.name)}" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 32 as UInt8,
// CHECK: /* "main.MyStruct" */ 14 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 0 as UInt8,
// CHECK: /* "\${${var.name}}" */ 16 as UInt8, 92 as UInt8, 36 as UInt8, 123 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 125 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 32,
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
// CHECK: /* "\${${var.name}}" */ 16, 92, 36, 123, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 125, 125, 0
// CHECK: )
@DebugDescription
@@ -21,10 +24,12 @@ class MyClass {
var name: String = "thirty"
var lldbDescription: String { "${var.name}" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 27 as UInt8,
// CHECK: /* "main.MyClass" */ 13 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 67 as UInt8, 108 as UInt8, 97 as UInt8, 115 as UInt8, 115 as UInt8, 0 as UInt8,
// CHECK: /* "${var.name}" */ 12 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 27,
// CHECK: /* "main.MyClass" */ 13, 109, 97, 105, 110, 46, 77, 121, 67, 108, 97, 115, 115, 0,
// CHECK: /* "${var.name}" */ 12, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 125, 0
// CHECK: )

View File

@@ -9,11 +9,14 @@ struct MyStruct: CustomDebugStringConvertible {
var name: String = "thirty"
var debugDescription: String { "name: \(self.name)" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 34 as UInt8,
// CHECK: /* "main.MyStruct" */ 14 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 0 as UInt8,
// CHECK: /* "name: ${var.name}" */ 18 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 58 as UInt8, 32 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 34,
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
// CHECK: /* "name: ${var.name}" */ 18, 110, 97, 109, 101, 58, 32, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 125, 0
// CHECK: )
@DebugDescription
@@ -21,10 +24,12 @@ class MyClass: CustomDebugStringConvertible {
var name: String = "thirty"
var debugDescription: String { "name: \(self.name)" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 33 as UInt8,
// CHECK: /* "main.MyClass" */ 13 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 67 as UInt8, 108 as UInt8, 97 as UInt8, 115 as UInt8, 115 as UInt8, 0 as UInt8,
// CHECK: /* "name: ${var.name}" */ 18 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 58 as UInt8, 32 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 33,
// CHECK: /* "main.MyClass" */ 13, 109, 97, 105, 110, 46, 77, 121, 67, 108, 97, 115, 115, 0,
// CHECK: /* "name: ${var.name}" */ 18, 110, 97, 109, 101, 58, 32, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 125, 0
// CHECK: )

View File

@@ -10,9 +10,12 @@ struct MyStruct {}
extension MyStruct {
var debugDescription: String { "thirty" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 34 as UInt8,
// CHECK: /* "^main[.]MyStruct(<.+>)?$" */ 25 as UInt8, 94 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 91 as UInt8, 46 as UInt8, 93 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 40 as UInt8, 60 as UInt8, 46 as UInt8, 43 as UInt8, 62 as UInt8, 41 as UInt8, 63 as UInt8, 36 as UInt8, 0 as UInt8,
// CHECK: /* "thirty" */ 7 as UInt8, 116 as UInt8, 104 as UInt8, 105 as UInt8, 114 as UInt8, 116 as UInt8, 121 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 34,
// CHECK: /* "^main[.]MyStruct(<.+>)?$" */ 25, 94, 109, 97, 105, 110, 91, 46, 93, 77, 121, 83, 116, 114, 117, 99, 116, 40, 60, 46, 43, 62, 41, 63, 36, 0,
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
// CHECK: )

View File

@@ -9,11 +9,14 @@ struct MyStruct: CustomDebugStringConvertible {
var name: String = "thirty"
var debugDescription: String { "name: \(name)" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 34 as UInt8,
// CHECK: /* "main.MyStruct" */ 14 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 0 as UInt8,
// CHECK: /* "name: ${var.name}" */ 18 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 58 as UInt8, 32 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 34,
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
// CHECK: /* "name: ${var.name}" */ 18, 110, 97, 109, 101, 58, 32, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 125, 0
// CHECK: )
@DebugDescription
@@ -21,9 +24,12 @@ class MyClass: CustomDebugStringConvertible {
var name: String = "thirty"
var debugDescription: String { "name: \(name)" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 33 as UInt8,
// CHECK: /* "main.MyClass" */ 13 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 67 as UInt8, 108 as UInt8, 97 as UInt8, 115 as UInt8, 115 as UInt8, 0 as UInt8,
// CHECK: /* "name: ${var.name}" */ 18 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 58 as UInt8, 32 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 33,
// CHECK: /* "main.MyClass" */ 13, 109, 97, 105, 110, 46, 77, 121, 67, 108, 97, 115, 115, 0,
// CHECK: /* "name: ${var.name}" */ 18, 110, 97, 109, 101, 58, 32, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 125, 0
// CHECK: )

View File

@@ -15,10 +15,13 @@ struct MyStruct: CustomDebugStringConvertible {
// CHECK: @section("__TEXT,__lldbsummaries")
// CHECK: #endif
// CHECK: @used
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 23 as UInt8,
// CHECK: /* "main.MyStruct" */ 14 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 0 as UInt8,
// CHECK: /* "thirty" */ 7 as UInt8, 116 as UInt8, 104 as UInt8, 105 as UInt8, 114 as UInt8, 116 as UInt8, 121 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 23,
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
// CHECK: )
// CHECK: #endif

View File

@@ -15,7 +15,10 @@ struct MyStruct: CustomDebugStringConvertible {
"""
}
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 192 as UInt8, 2 as UInt8,
// CHECK: 8-bit integer. See https://en.wikipedia.org/wiki/LEB128" */ 175 as UInt8, 2 as UInt8, 65 as UInt8,
/// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 192, 2,
// CHECK: 8-bit integer. See https://en.wikipedia.org/wiki/LEB128" */ 175, 2, 65,

View File

@@ -9,11 +9,14 @@ struct MyStruct: CustomDebugStringConvertible {
var name: String = "thirty"
var debugDescription: String { "\(self.name.count) \(name.count)" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 52 as UInt8,
// CHECK: /* "main.MyStruct" */ 14 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 0 as UInt8,
// CHECK: /* "${var.name.count} ${var.name.count}" */ 36 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 46 as UInt8, 99 as UInt8, 111 as UInt8, 117 as UInt8, 110 as UInt8, 116 as UInt8, 125 as UInt8, 32 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 46 as UInt8, 99 as UInt8, 111 as UInt8, 117 as UInt8, 110 as UInt8, 116 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 52,
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
// CHECK: /* "${var.name.count} ${var.name.count}" */ 36, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 46, 99, 111, 117, 110, 116, 125, 32, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 46, 99, 111, 117, 110, 116, 125, 0
// CHECK: )
@DebugDescription
@@ -21,10 +24,12 @@ class MyClass: CustomDebugStringConvertible {
var name: String = "thirty"
var debugDescription: String { "\(self.name.count) \(name.count)" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 51 as UInt8,
// CHECK: /* "main.MyClass" */ 13 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 67 as UInt8, 108 as UInt8, 97 as UInt8, 115 as UInt8, 115 as UInt8, 0 as UInt8,
// CHECK: /* "${var.name.count} ${var.name.count}" */ 36 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 46 as UInt8, 99 as UInt8, 111 as UInt8, 117 as UInt8, 110 as UInt8, 116 as UInt8, 125 as UInt8, 32 as UInt8, 36 as UInt8, 123 as UInt8, 118 as UInt8, 97 as UInt8, 114 as UInt8, 46 as UInt8, 110 as UInt8, 97 as UInt8, 109 as UInt8, 101 as UInt8, 46 as UInt8, 99 as UInt8, 111 as UInt8, 117 as UInt8, 110 as UInt8, 116 as UInt8, 125 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 51,
// CHECK: /* "main.MyClass" */ 13, 109, 97, 105, 110, 46, 77, 121, 67, 108, 97, 115, 115, 0,
// CHECK: /* "${var.name.count} ${var.name.count}" */ 36, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 46, 99, 111, 117, 110, 116, 125, 32, 36, 123, 118, 97, 114, 46, 110, 97, 109, 101, 46, 99, 111, 117, 110, 116, 125, 0
// CHECK: )

View File

@@ -8,31 +8,40 @@
struct MyStruct: CustomDebugStringConvertible {
var debugDescription: String { "thirty" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 23 as UInt8,
// CHECK: /* "main.MyStruct" */ 14 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 0 as UInt8,
// CHECK: /* "thirty" */ 7 as UInt8, 116 as UInt8, 104 as UInt8, 105 as UInt8, 114 as UInt8, 116 as UInt8, 121 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 23,
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
// CHECK: )
@DebugDescription
class MyClass: CustomDebugStringConvertible {
var debugDescription: String { "thirty" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 22 as UInt8,
// CHECK: /* "main.MyClass" */ 13 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 67 as UInt8, 108 as UInt8, 97 as UInt8, 115 as UInt8, 115 as UInt8, 0 as UInt8,
// CHECK: /* "thirty" */ 7 as UInt8, 116 as UInt8, 104 as UInt8, 105 as UInt8, 114 as UInt8, 116 as UInt8, 121 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 22,
// CHECK: /* "main.MyClass" */ 13, 109, 97, 105, 110, 46, 77, 121, 67, 108, 97, 115, 115, 0,
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
// CHECK: )
@DebugDescription
class MyEnum: CustomDebugStringConvertible {
var debugDescription: String { "thirty" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 21 as UInt8,
// CHECK: /* "main.MyEnum" */ 12 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 69 as UInt8, 110 as UInt8, 117 as UInt8, 109 as UInt8, 0 as UInt8,
// CHECK: /* "thirty" */ 7 as UInt8, 116 as UInt8, 104 as UInt8, 105 as UInt8, 114 as UInt8, 116 as UInt8, 121 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 21,
// CHECK: /* "main.MyEnum" */ 12, 109, 97, 105, 110, 46, 77, 121, 69, 110, 117, 109, 0,
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
// CHECK: )

View File

@@ -8,11 +8,14 @@
struct MyStruct1: CustomStringConvertible {
var description: String { "thirty" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 24 as UInt8,
// CHECK: /* "main.MyStruct1" */ 15 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 49 as UInt8, 0 as UInt8,
// CHECK: /* "thirty" */ 7 as UInt8, 116 as UInt8, 104 as UInt8, 105 as UInt8, 114 as UInt8, 116 as UInt8, 121 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 24,
// CHECK: /* "main.MyStruct1" */ 15, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 49, 0,
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
// CHECK: )
@DebugDescription
@@ -20,11 +23,14 @@ struct MyStruct2: CustomDebugStringConvertible {
var description: String { "thirty" }
var debugDescription: String { "eleven" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 24 as UInt8,
// CHECK: /* "main.MyStruct2" */ 15 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 50 as UInt8, 0 as UInt8,
// CHECK: /* "eleven" */ 7 as UInt8, 101 as UInt8, 108 as UInt8, 101 as UInt8, 118 as UInt8, 101 as UInt8, 110 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 24,
// CHECK: /* "main.MyStruct2" */ 15, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 50, 0,
// CHECK: /* "eleven" */ 7, 101, 108, 101, 118, 101, 110, 0
// CHECK: )
@DebugDescription
@@ -33,8 +39,11 @@ struct MyStruct3: CustomDebugStringConvertible {
var debugDescription: String { "eleven" }
var lldbDescription: String { "two" }
}
// CHECK: static let _lldb_summary = (
// CHECK: /* version */ 1 as UInt8,
// CHECK: /* record size */ 21 as UInt8,
// CHECK: /* "main.MyStruct3" */ 15 as UInt8, 109 as UInt8, 97 as UInt8, 105 as UInt8, 110 as UInt8, 46 as UInt8, 77 as UInt8, 121 as UInt8, 83 as UInt8, 116 as UInt8, 114 as UInt8, 117 as UInt8, 99 as UInt8, 116 as UInt8, 51 as UInt8, 0 as UInt8,
// CHECK: /* "two" */ 4 as UInt8, 116 as UInt8, 119 as UInt8, 111 as UInt8, 0 as UInt8
// CHECK: static let _lldb_summary: (
// CHECK: {{UInt8(, UInt8)*}}
// CHECK: ) =
// CHECK: (
// CHECK: /* version */ 1,
// CHECK: /* record size */ 21,
// CHECK: /* "main.MyStruct3" */ 15, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 51, 0,
// CHECK: /* "two" */ 4, 116, 119, 111, 0