File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
lldb/test/API/lang/swift/nested_generic Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ SWIFT_SOURCES := main.swift
2+
3+ include Makefile.rules
Original file line number Diff line number Diff line change 1+ import lldb
2+ from lldbsuite .test .decorators import *
3+ import lldbsuite .test .lldbtest as lldbtest
4+ import lldbsuite .test .lldbutil as lldbutil
5+
6+
7+ class TestSwiftNestedGeneric (lldbtest .TestBase ):
8+ @swiftTest
9+ def test (self ):
10+ """Test the inline array synthetic child provider and summary"""
11+ self .build ()
12+ lldbutil .run_to_source_breakpoint (
13+ self , "break here" , lldb .SBFileSpec ("main.swift" )
14+ )
15+
16+ self .runCmd ("settings set symbols.swift-enable-ast-context false" )
17+ self .expect (
18+ "frame variable v" ,
19+ substrs = [
20+ "HoldsNonNamespacedNestedStruct.NamespacedNestingStruct<Int>" ,
21+ "nested = 42" ,
22+ ],
23+ )
Original file line number Diff line number Diff line change 1+ class HoldsNonNamespacedNestedStruct {
2+ struct NamespacedNestingStruct < T> {
3+ let nested : T
4+ }
5+
6+ }
7+
8+ func f( ) {
9+ let v = HoldsNonNamespacedNestedStruct . NamespacedNestingStruct< Int> ( nested: 42 )
10+ print ( v) // break here
11+ }
12+
13+ f ( )
You can’t perform that action at this time.
0 commit comments