summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/python_api/sbtype_typeclass/main.m
blob: 6ac70d1d06b763bffc8110af9d8662401106860b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//===-- main.m --------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#import <Foundation/Foundation.h>

@interface ThisClassTestsThings : NSObject
@end

@implementation ThisClassTestsThings
- (int)doSomething {

    id s = self;
    NSLog(@"%@",s); //% s = self.frame().FindVariable("s"); s.SetPreferDynamicValue(lldb.eDynamicCanRunTarget)
    //% s_type = s.GetType()
    //% typeClass = s_type.GetTypeClass()
    //% condition = (typeClass == lldb.eTypeClassClass) or (typeClass ==lldb.eTypeClassObjCObject) or (typeClass == lldb.eTypeClassObjCInterface) or (typeClass == lldb.eTypeClassObjCObjectPointer) or (typeClass == lldb.eTypeClassPointer)
    //% self.assertTrue(condition, "s has the wrong TypeClass")
    return 0;
}
- (id)init {
    return (self = [super init]);
}
@end


int main (int argc, char const *argv[])
{
    return [[[ThisClassTestsThings alloc] init] doSomething];
}