aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/objc/languageinfo/TestObjCLanguageSpecificData.py
blob: 5558abed929dacd223fd83a837902c8d16c685b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil


class ObjCiVarIMPTestCase(TestBase):
    @skipUnlessDarwin
    @no_debug_info_test
    def test_imp_ivar_type(self):
        self.build()
        target, process, thread, bkpt = lldbutil.run_to_name_breakpoint(self, "main")
        frame = thread.GetFrameAtIndex(0)
        lang_info = frame.GetLanguageSpecificData()
        version = lang_info.GetValueForKey("Objective-C runtime version")
        self.assertEqual(version.GetIntegerValue(), 2)