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 @skipIf(compiler="clang", compiler_version=["<", "7.0"]) 10 def test_union_members(self): 11 self.build() 12 spec = lldb.SBModuleSpec() 13 spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out"))) 14 module = lldb.SBModule(spec) 15 self.assertTrue(module.IsValid()) 16 mytype = module.FindFirstType("foobár") 17 self.assertTrue(mytype.IsValid()) 18 self.assertTrue(mytype.IsPointerType()) 19