xref: /llvm-project/lldb/test/API/lang/c/unicode/TestUnicodeSymbols.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
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