aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/lang/objcxx/objcxx-ivar-vector/main.mm
blob: 36eda1da2acbe98a408b256caf90358125e96486 (plain) (blame)
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
#import <Foundation/Foundation.h>

#include <vector>

@interface MyElement : NSObject {
}
@end

@interface MyClass : NSObject {
  std::vector<MyElement *> elements;
};

-(void)doSomething;

@end

@implementation MyClass

-(void)doSomething
{
  NSLog(@"Hello"); //% self.expect("expression -- elements", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["vector", "MyElement"]);
}

@end

int main ()
{
  @autoreleasepool
  {
    MyClass *c = [MyClass alloc];
    [c doSomething];
  }
}