19 lines · python
1# coding=utf82import lldb3from lldbsuite.test.lldbtest import *4import lldbsuite.test.lldbutil as lldbutil5from 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