• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#import <Foundation/Foundation.h>
2
3#include <vector>
4
5@interface MyElement : NSObject {
6}
7@end
8
9@interface MyClass : NSObject {
10  std::vector<MyElement *> elements;
11};
12
13-(void)doSomething;
14
15@end
16
17@implementation MyClass
18
19-(void)doSomething
20{
21  NSLog(@"Hello"); //% self.expect("expression -- elements", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["vector", "MyElement"]);
22}
23
24@end
25
26int main ()
27{
28  @autoreleasepool
29  {
30    MyClass *c = [MyClass alloc];
31    [c doSomething];
32  }
33}
34