1# coding=utf8 2import lldb 3from lldbsuite.test.lldbtest import * 4import lldbsuite.test.lldbutil as lldbutil 5from lldbsuite.test.decorators import * 6 7 8class TestUnicodeSymbols(TestBase): 9 10 mydir = TestBase.compute_mydir(__file__) 11 12 @skipIf(compiler="clang", compiler_version=['<', '7.0']) 13 def test_union_members(self): 14 self.build() 15 spec = lldb.SBModuleSpec() 16 spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out"))) 17 module = lldb.SBModule(spec) 18 self.assertTrue(module.IsValid()) 19 mytype = module.FindFirstType("foobár") 20 self.assertTrue(mytype.IsValid()) 21 self.assertTrue(mytype.IsPointerType()) 22