Skip to content

Commit 97b35c8

Browse files
committed
Add test
(cherry-picked from commit fbe703c)
1 parent 58d04b4 commit 97b35c8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lldb/test/API/lang/swift/variables/bridged_string/TestSwiftBridgedStringVariables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ def test_swift_bridged_string_variables(self):
3737
s4 = self.frame().FindVariable("s4")
3838
s5 = self.frame().FindVariable("s5")
3939
s6 = self.frame().FindVariable("s6")
40+
s7 = self.frame().FindVariable("s7")
4041

4142
lldbutil.check_variable(self, s1, summary='"Hello world"')
4243
lldbutil.check_variable(self, s2, summary='"ΞΕΛΛΘ"')
4344
lldbutil.check_variable(self, s3, summary='"Hello world"')
4445
lldbutil.check_variable(self, s4, summary='"ΞΕΛΛΘ"')
4546
lldbutil.check_variable(self, s5, use_dynamic=True, summary='"abc"')
4647
lldbutil.check_variable(self, s6, summary='"abc"')
48+
lldbutil.check_variable(self, s7, summary='"kCFRunLoopDefaultMode"')
4749

lldb/test/API/lang/swift/variables/bridged_string/main.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func main()
1919
let s4 = s2 as NSString
2020
let s5 = "abc" as NSString
2121
let s6 = String(s5)
22+
let s7 = CFRunLoopMode.defaultMode!.rawValue as String
2223
print(s1) // Set breakpoint here
2324
withExtendedLifetime((s2, s3, s4, s5, s6)) {}
2425
}

0 commit comments

Comments
 (0)